void-packages/templates/udev/udev.initramfs-premount
Juan RP a392f5f9f4 udev: add initramfs-tools, update depends.
--HG--
extra : convert_revision : 2450b2c23182dd801dedb579b86ae3e40c3abdb9
2009-02-19 16:10:13 +01:00

29 lines
523 B
Bash

#!/bin/sh -e
# initramfs premount script for udev
PREREQ=""
# Output pre-requisites
prereqs()
{
echo "$PREREQ"
}
case "$1" in
prereqs)
prereqs
exit 0
;;
esac
# It's all over netlink now
echo "" > /proc/sys/kernel/hotplug
# Start the udev daemon to process events
/sbin/udevd --daemon --resolve-names=never
# Iterate sysfs and fire off everything; if we include a rule for it then
# it'll get handled; otherwise it'll get handled later when we do this again
# in the main boot sequence.
/sbin/udevadm trigger