2007-02-22 23:46:50 +01:00
|
|
|
# Created by Tobias Powalowski <tpowa@archlinux.org>
|
|
|
|
|
2012-09-10 21:59:22 +02:00
|
|
|
run_earlyhook() {
|
|
|
|
udevd --daemon --resolve-names=never
|
|
|
|
udevd_running=1
|
|
|
|
}
|
|
|
|
|
2007-02-22 23:46:50 +01:00
|
|
|
run_hook ()
|
|
|
|
{
|
2010-07-11 17:44:21 +02:00
|
|
|
# fix x86_64 symlink on x86_64
|
|
|
|
[ "$(uname -r)" = "x86_64" ] && ln -s /usr/bin/setarch /usr/bin/x86_64
|
2012-09-12 11:11:00 +02:00
|
|
|
|
2012-07-31 15:28:25 +02:00
|
|
|
# disable motd from login, pam does show motd already
|
|
|
|
touch /root/.hushlogin
|
2012-09-12 11:11:00 +02:00
|
|
|
|
2012-09-10 21:59:22 +02:00
|
|
|
# these static devices are created for convenience, to autoload the modules if necessary
|
|
|
|
# /dev/loop0
|
|
|
|
mknod -m 0660 /dev/loop0 b 7 0
|
2012-09-12 11:11:00 +02:00
|
|
|
|
2012-09-10 21:59:22 +02:00
|
|
|
# trigger udev events
|
|
|
|
msg ":: Triggering uevents..."
|
|
|
|
udevadm trigger --action=add --type=subsystems
|
|
|
|
udevadm trigger --action=add --type=devices
|
|
|
|
udevadm settle
|
2007-02-22 23:46:50 +01:00
|
|
|
}
|
2012-09-10 21:59:22 +02:00
|
|
|
|
|
|
|
run_cleanuphook() {
|
|
|
|
udevadm control --exit
|
|
|
|
udevadm info --cleanup-db
|
|
|
|
}
|