This commit is contained in:
Jack L. Frost 2014-07-21 08:54:56 +04:00
parent 9841e59c32
commit 2e2570fd50
2 changed files with 2 additions and 16 deletions

View File

@ -1,4 +1,4 @@
#!/usr/bin/env bash
#!/usr/bin/env watchman
# This is a script to set up the links in /dev in absence of e?(u|s?m)dev.
# Run this _after_ miscfs.

View File

@ -1,4 +1,4 @@
#!/usr/bin/env bash
#!/usr/bin/env watchman
# This is a script to set up the right permissions in /dev in absence of e?(u|s?m)dev.
# Run this _after_ miscfs.
@ -11,10 +11,6 @@ cfg_devices=(
'/dev/fuse;root:root;777'
)
cfg_links=(
'/proc/self/fd;/dev/fd'
)
start() {
for d in "${cfg_devices[@]}"; do
IFS=';' read device owner perms <<< "$d"
@ -24,14 +20,4 @@ start() {
chmod -R "$perms" "$device"
}
done
for l in "${cfg_links[@]}"; do
IFS=';' read dest link <<< "$l"
[[ -e "$link" ]] || {
[[ -e "$dest" ]] && {
ln -s "$dest" "$link"
}
}
done
}