2017-07-13 13:09:42 +00:00
|
|
|
#!/usr/bin/env ssm
|
2014-07-20 20:24:01 +00:00
|
|
|
# This is a script to set up the links in /dev in absence of e?(u|s?m)dev.
|
|
|
|
|
|
|
|
service_type='oneshot'
|
|
|
|
|
2014-07-27 22:09:11 +00:00
|
|
|
# Config moved to conf.d
|
2014-07-20 20:24:01 +00:00
|
|
|
|
2014-07-28 03:52:32 +00:00
|
|
|
spawn() {
|
2014-07-20 20:24:01 +00:00
|
|
|
for l in "${cfg_links[@]}"; do
|
|
|
|
IFS=';' read dest link <<< "$l"
|
|
|
|
|
|
|
|
[[ -e "$link" ]] || {
|
|
|
|
[[ -e "$dest" ]] && {
|
|
|
|
ln -s "$dest" "$link"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
done
|
|
|
|
}
|