diff options
author | Tobias Powalowski <tpowa@archlinux.org> | 2007-10-18 08:43:28 +0000 |
---|---|---|
committer | Tobias Powalowski <tpowa@archlinux.org> | 2007-10-18 08:43:28 +0000 |
commit | fa4866f0adce9c3e0bfc09fb878eebb99797c338 (patch) | |
tree | d881077369a0c811db6c8250972572b3ba01cec4 /rc.single | |
parent | 8649f79e8e0027bd46da8b13f6d8ac5465471c35 (diff) |
'upgpkg: trying to fix #6237,7554,7165,7641,5740'
Diffstat (limited to 'rc.single')
-rwxr-xr-x | rc.single | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -10,14 +10,14 @@ if [ "$PREVLEVEL" = "3" -o "$PREVLEVEL" = "5" ]; then # Shutdown daemons let i=${#DAEMONS[@]} while [[ i -gt 0 ]]; do - if [[ `echo ${DAEMONS[$i]} | grep '^[^\!]' | wc -l` -eq 1 ]]; then + if [[ $(echo ${DAEMONS[$i]} | grep '^[^\!]' | wc -l) -eq 1 ]]; then /etc/rc.d/${DAEMONS[$i]#@} stop fi let i=i-1 done # find any leftover daemons and shut them down if [ -d /var/run/daemons ]; then - for daemon in `ls /var/run/daemons`; do + for daemon in $(ls /var/run/daemons); do /etc/rc.d/$daemon stop done fi @@ -37,7 +37,7 @@ if [ "$PREVLEVEL" != "N" ]; then if [ -x /etc/start_udev -a -d /sys/block ]; then # We have a start_udev script and /sys appears to be mounted, use UDev status "Starting UDev Daemon" /etc/start_udev - if [ "`pidof -o %PPID /sbin/udevd`" ]; then + if [ "$(pidof -o %PPID /sbin/udevd)" ]; then # If an old udevd is kicking around, we'll have to remount pts and shm umount /dev/shm /dev/pts >/dev/null 2>&1 mount /dev/pts |