summaryrefslogtreecommitdiffstats
path: root/initramfs/initrd-stuff/etc/functions
diff options
context:
space:
mode:
authorDirk von Suchodoletz2006-12-16 01:13:02 +0100
committerDirk von Suchodoletz2006-12-16 01:13:02 +0100
commit0e41494e29e20161d0e7846b79d16324b99b323f (patch)
tree93a052fac7dd27114146d07130908fd0901a444a /initramfs/initrd-stuff/etc/functions
parentUse a temp dir to download the prerequired packages. If we can't create (diff)
downloadcore-0e41494e29e20161d0e7846b79d16324b99b323f.tar.gz
core-0e41494e29e20161d0e7846b79d16324b99b323f.tar.xz
core-0e41494e29e20161d0e7846b79d16324b99b323f.zip
Enabled busybox udev service (see #99 too). Integrated for genereal use
if present in InitRamFS... git-svn-id: http://svn.openslx.org/svn/openslx/trunk@551 95ad53e4-c205-0410-b2fa-d234c58c8868
Diffstat (limited to 'initramfs/initrd-stuff/etc/functions')
-rw-r--r--initramfs/initrd-stuff/etc/functions24
1 files changed, 24 insertions, 0 deletions
diff --git a/initramfs/initrd-stuff/etc/functions b/initramfs/initrd-stuff/etc/functions
index b27dfc66..aa0a8225 100644
--- a/initramfs/initrd-stuff/etc/functions
+++ b/initramfs/initrd-stuff/etc/functions
@@ -32,6 +32,7 @@ udev_hotplug () {
:
}
+
#############################################################################
# generate events with the sysfs trigger
trigger_device_events () {
@@ -61,6 +62,29 @@ trigger_device_events () {
}
#############################################################################
+# mini udev of busybox or distro specific udev_hotplug
+runudev () {
+if [ -x /bin/mdev ] ; then
+ # simple shell daemon which runs for 100 seconds and stops if hwautocfg is
+ # completed
+ #miniudev () {
+ # local maxwait=100
+ # local count=0
+ # while [ ! -e /tmp/hwcfg ] ; do
+ mdev -s
+ # sleep 1
+ # count=`expr $count + 1`
+ # [ $count -gt $maxwait ] && return 0
+ # done
+ #}
+ #miniudev &
+else
+ udev_hotplug
+fi
+echo "Started udev"
+}
+
+#############################################################################
# produce error message and if $2 is empty run (debug) shell
error () {
local e_msg="$1"