aboutsummaryrefslogtreecommitdiff
path: root/rc.single
diff options
context:
space:
mode:
authorRoman Kyrylych <roman@archlinux.org>2008-03-08 19:22:48 +0200
committerRoman Kyrylych <roman@archlinux.org>2008-03-08 19:37:00 +0200
commit45e331302268490cfb532ea6fe827cba1351ec5b (patch)
treeb251a1c3f79ae581e3ab9513f6fd4585a91808f3 /rc.single
parent6214a05ea023b8bc3014d8032af18b2404276d00 (diff)
downloadinitscripts-45e331302268490cfb532ea6fe827cba1351ec5b.tar.xz
Use full path to binaries everywhere
Signed-off-by: Roman Kyrylych <roman@archlinux.org>
Diffstat (limited to 'rc.single')
-rwxr-xr-xrc.single10
1 files changed, 5 insertions, 5 deletions
diff --git a/rc.single b/rc.single
index 5f55eeb..9c940a5 100755
--- a/rc.single
+++ b/rc.single
@@ -12,7 +12,7 @@ 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]} | /bin/grep '^[^\!]' | /usr/bin/wc -l) -eq 1 ]]; then
/etc/rc.d/${DAEMONS[$i]#@} stop
fi
let i=i-1
@@ -39,11 +39,11 @@ 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 [ "$(/bin/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
- mount /dev/shm
+ /bin/umount /dev/shm /dev/pts >/dev/null 2>&1
+ /bin/mount /dev/pts
+ /bin/mount /dev/shm
fi
else
# Static /dev, our last resort