summaryrefslogtreecommitdiff
path: root/rc.sysinit
diff options
context:
space:
mode:
authorRoman Kyrylych <roman@archlinux.org>2008-03-09 17:22:11 +0200
committerRoman Kyrylych <roman@archlinux.org>2008-03-09 17:22:11 +0200
commit7526db5d0405188fee94d16fbcfbdf13a17e6a45 (patch)
tree27d1211260b3c7cf35a28aaeef61653e0a0f2f9d /rc.sysinit
parent2c9681f461a0cde98a88de65e232369df68ed859 (diff)
More full-path fixes
Signed-off-by: Roman Kyrylych <roman@archlinux.org>
Diffstat (limited to 'rc.sysinit')
-rwxr-xr-xrc.sysinit24
1 files changed, 12 insertions, 12 deletions
diff --git a/rc.sysinit b/rc.sysinit
index 6c90ce9..e341d13 100755
--- a/rc.sysinit
+++ b/rc.sysinit
@@ -85,7 +85,7 @@ if [ -x /sbin/udevadm -a -d /sys/block ]; then
stat_done
else
# Static /dev, our last resort
- status "Using static /dev filesystem" /bin/true
+ status "Using static /dev filesystem" true
fi
# Load modules from the MODULES array defined in rc.conf
@@ -123,11 +123,11 @@ fi
if /bin/pidof -o %PPID /sbin/udevd >/dev/null; then
#status "Loading UDev uevents" /etc/start_udev uevents
stat_busy "Loading UDev uevents"
- udevstart="$(date +%s%0N)"
+ udevstart="$(/bin/date +%s%0N)"
/sbin/udevadm trigger
/sbin/udevadm settle
stat_done
- udevend="$(date +%s%0N)"
+ udevend="$(/bin/date +%s%0N)"
printhl " UDev uevent processing time: $((($udevend-$udevstart)/1000000))ms\n"
fi
@@ -150,12 +150,12 @@ if [ -e /initrd/dev/mapper/root ]; then
fi
# If necessary, find md devices and manually assemble RAID arrays
-if [ -f /etc/mdadm.conf -a "$(grep ^ARRAY /etc/mdadm.conf 2>/dev/null)" ]; then
+if [ -f /etc/mdadm.conf -a "$(/bin/grep ^ARRAY /etc/mdadm.conf 2>/dev/null)" ]; then
# udev won't create these md nodes, so we do it ourselves
for dev in $(/bin/grep ^ARRAY /etc/mdadm.conf | /bin/awk '{print $2}'); do
- path=$(echo $dev | sed 's|/[^/]*$||')
- node=$(echo $dev | sed "s|^$path/||")
- minor=$(echo $node | sed 's|^[^0-9]*||')
+ path=$(echo $dev | /bin/sed 's|/[^/]*$||')
+ node=$(echo $dev | /bin/sed "s|^$path/||")
+ minor=$(echo $node | /bin/sed 's|^[^0-9]*||')
[ ! -e $path/$node ] && /bin/mknod $path/$node b 9 $minor
done
status "Activating RAID arrays" /sbin/mdadm --assemble --scan
@@ -268,7 +268,7 @@ NETFS="nonfs,nonfs4,nosmbfs,nocifs,nocodafs,noncpfs,nosysfs,nousbfs,noshfs,nofus
if [ -x /sbin/fsck ]; then
stat_busy "Checking Filesystems"
- if grep -qw quiet /proc/cmdline; then
+ if /bin/grep -qw quiet /proc/cmdline; then
/sbin/fsck -A -T -C -a -t $NETFS $FORCEFSCK >/dev/null 2>&1
else
/sbin/fsck -A -T -C -a -t $NETFS $FORCEFSCK 2>/dev/null
@@ -392,7 +392,7 @@ if echo "$LOCALE" | /bin/grep -qi utf ; then
# this code is needed not only for older kernels,
# but also when user has set vt.default_utf8=0 but LOCALE is *.UTF-8.
/usr/bin/kbd_mode -u
- for i in $(seq 0 63); do
+ for i in $(/usr/bin/seq 0 63); do
printf "\e%%G" > /dev/vc/${i}
done
# the $CONSOLE check helps us avoid this when running scripts from cron
@@ -403,7 +403,7 @@ else
stat_busy "Setting Consoles to legacy mode"
# make non-UTF-8 consoles work on 2.6.24 and newer kernels
/usr/bin/kbd_mode -a
- for i in $(seq 0 63); do
+ for i in $(/usr/bin/seq 0 63); do
printf "\e%%@" > /dev/vc/${i}
done
# the $CONSOLE check helps us avoid this when running scripts from cron
@@ -418,7 +418,7 @@ if [ -n "$CONSOLEFONT" ]; then
if [ -n "$CONSOLEMAP" ] && echo "$LOCALE" | /bin/grep -qi utf ; then
CONSOLEMAP=""
fi
- for i in $(seq 0 63); do
+ for i in $(/usr/bin/seq 0 63); do
if [ -n "$CONSOLEMAP" ]; then
/usr/bin/setfont -m $CONSOLEMAP $CONSOLEFONT -C /dev/vc/${i} >/dev/null 2>&1
else
@@ -428,7 +428,7 @@ if [ -n "$CONSOLEFONT" ]; then
if [ $? -ne 0 ]; then
stat_fail
else
- for i in $(seq 0 63); do
+ for i in $(/usr/bin/seq 0 63); do
printf "\e(K" > /dev/vc/${i}
done
# the $CONSOLE check helps us avoid this when running scripts from cron