summaryrefslogtreecommitdiffstats
path: root/hooks
diff options
context:
space:
mode:
Diffstat (limited to 'hooks')
-rw-r--r--hooks/btrfs4
-rw-r--r--hooks/consolefont4
-rw-r--r--hooks/keymap6
-rw-r--r--hooks/memdisk6
-rw-r--r--hooks/udev6
5 files changed, 13 insertions, 13 deletions
diff --git a/hooks/btrfs b/hooks/btrfs
index c4836c5..8ee5e0e 100644
--- a/hooks/btrfs
+++ b/hooks/btrfs
@@ -2,6 +2,6 @@
run_hook ()
{
- /sbin/modprobe btrfs
- /sbin/btrfs device scan
+ modprobe btrfs
+ btrfs device scan
}
diff --git a/hooks/consolefont b/hooks/consolefont
index 8e53eec..07cbd71 100644
--- a/hooks/consolefont
+++ b/hooks/consolefont
@@ -4,11 +4,11 @@ run_hook ()
{
if [ -e /consolefont.psfu ]; then
msg -n ":: Loading console font..."
- /usr/sbin/setfont -C /dev/console /consolefont.psfu
+ setfont -C /dev/console /consolefont.psfu
msg "done."
elif [ -e /consolefont.psf ]; then
msg -n ":: Loading console font..."
- /usr/sbin/setfont -C /dev/console /consolefont.psf
+ setfont -C /dev/console /consolefont.psf
msg "done."
else
msg "No consolefont found despite added hook."
diff --git a/hooks/keymap b/hooks/keymap
index 9557c26..3593168 100644
--- a/hooks/keymap
+++ b/hooks/keymap
@@ -5,13 +5,13 @@ run_hook ()
msg -n ":: Loading keymap..."
. /keymap.utf8
if [ "${UTF8}" = "yes" ]; then
- /usr/bin/kbd_mode -u -C /dev/console
+ kbd_mode -u -C /dev/console
printf "\033%%G" >> /dev/console
else
- /usr/bin/kbd_mode -a -C /dev/console
+ kbd_mode -a -C /dev/console
printf "\033%%@" >> /dev/console
fi
- /sbin/loadkmap < /keymap.bin
+ loadkmap < /keymap.bin
msg "done."
fi
}
diff --git a/hooks/memdisk b/hooks/memdisk
index 2c3642e..e3ff345 100644
--- a/hooks/memdisk
+++ b/hooks/memdisk
@@ -1,11 +1,11 @@
# vim:set ft=sh:
run_hook ()
{
- MEMDISK=$(/usr/bin/memdiskfind)
+ MEMDISK=$(memdiskfind)
if [ $? -eq 0 ]; then
# We found a memdisk, set up phram
- /sbin/modprobe phram phram=memdisk,${MEMDISK}
+ modprobe phram phram=memdisk,${MEMDISK}
# Load mtdblock, the memdisk will be /dev/mtdblock0
- /sbin/modprobe mtdblock
+ modprobe mtdblock
fi
}
diff --git a/hooks/udev b/hooks/udev
index 0340a9c..87aa796 100644
--- a/hooks/udev
+++ b/hooks/udev
@@ -2,8 +2,8 @@
run_hook ()
{
msg -n ":: Triggering uevents..."
- /sbin/udevadm trigger --action=add --type=subsystems
- /sbin/udevadm trigger --action=add --type=devices
- /sbin/udevadm settle
+ udevadm trigger --action=add --type=subsystems
+ udevadm trigger --action=add --type=devices
+ udevadm settle
msg "done."
}