diff options
author | Dave Reisner <d@falconindy.com> | 2011-06-09 04:37:07 +0200 |
---|---|---|
committer | Thomas Bächler <thomas@archlinux.org> | 2011-06-25 12:25:45 +0200 |
commit | 81e77426e554a61d85e1738af604359171a6062e (patch) | |
tree | 93cc1d2444fe29f466706ceda19d801978c99fd4 /hooks | |
parent | 6dba57232914a1952dedea70a1dad38142ba7258 (diff) | |
download | mkinitcpio-81e77426e554a61d85e1738af604359171a6062e.tar.gz mkinitcpio-81e77426e554a61d85e1738af604359171a6062e.tar.xz |
init: declare PATH, remove absolute paths
We were never very consistent about this anyways.
Signed-off-by: Dave Reisner <d@falconindy.com>
Diffstat (limited to 'hooks')
-rw-r--r-- | hooks/btrfs | 4 | ||||
-rw-r--r-- | hooks/consolefont | 4 | ||||
-rw-r--r-- | hooks/keymap | 6 | ||||
-rw-r--r-- | hooks/memdisk | 6 | ||||
-rw-r--r-- | hooks/udev | 6 |
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 } @@ -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." } |