aboutsummaryrefslogtreecommitdiff
path: root/rc.single
diff options
context:
space:
mode:
authorTobias Powalowski <tpowa@archlinux.org>2007-10-18 08:43:28 +0000
committerTobias Powalowski <tpowa@archlinux.org>2007-10-18 08:43:28 +0000
commitfa4866f0adce9c3e0bfc09fb878eebb99797c338 (patch)
treed881077369a0c811db6c8250972572b3ba01cec4 /rc.single
parent8649f79e8e0027bd46da8b13f6d8ac5465471c35 (diff)
downloadinitscripts-fa4866f0adce9c3e0bfc09fb878eebb99797c338.tar.xz
'upgpkg: trying to fix #6237,7554,7165,7641,5740'
Diffstat (limited to 'rc.single')
-rwxr-xr-xrc.single6
1 files changed, 3 insertions, 3 deletions
diff --git a/rc.single b/rc.single
index edd20af..0d3581b 100755
--- a/rc.single
+++ b/rc.single
@@ -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