19 lines
314 B
Plaintext
Executable File
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
|
|
}
|