ssm-services/init.d/devfs-links
fbt 2205f72a2e watchman -> ssm
Signed-off-by: fbt <fbt@fleshless.org>
2017-07-13 16:09:42 +03:00

19 lines
314 B
Plaintext
Executable File

#!/usr/bin/env ssm
# This is a script to set up the links in /dev in absence of e?(u|s?m)dev.
service_type='oneshot'
# Config moved to conf.d
spawn() {
for l in "${cfg_links[@]}"; do
IFS=';' read dest link <<< "$l"
[[ -e "$link" ]] || {
[[ -e "$dest" ]] && {
ln -s "$dest" "$link"
}
}
done
}