diff options
author | Dirk von Suchodoletz | 2007-01-30 01:05:47 +0100 |
---|---|---|
committer | Dirk von Suchodoletz | 2007-01-30 01:05:47 +0100 |
commit | 701844f51192b9beaa7255b0b745338461801e96 (patch) | |
tree | 16657652b9175cf0f613f6250fcd3f4c8977849c /initramfs/initrd-stuff/etc/functions | |
parent | Update of the hardware description files was needed because of new (diff) | |
download | core-701844f51192b9beaa7255b0b745338461801e96.tar.gz core-701844f51192b9beaa7255b0b745338461801e96.tar.xz core-701844f51192b9beaa7255b0b745338461801e96.zip |
Added exclusion of runlevel links to init (tar in bind mount scenario to
clean up initial_boot), see Changeset 650 too ... Minor fixes ...
git-svn-id: http://svn.openslx.org/svn/openslx/trunk@651 95ad53e4-c205-0410-b2fa-d234c58c8868
Diffstat (limited to 'initramfs/initrd-stuff/etc/functions')
-rw-r--r-- | initramfs/initrd-stuff/etc/functions | 28 |
1 files changed, 7 insertions, 21 deletions
diff --git a/initramfs/initrd-stuff/etc/functions b/initramfs/initrd-stuff/etc/functions index 1bf5ffdc..8ecb5db1 100644 --- a/initramfs/initrd-stuff/etc/functions +++ b/initramfs/initrd-stuff/etc/functions @@ -67,19 +67,9 @@ 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 & + mknod /dev/mem c 1 1 &>/dev/null + mknod /dev/zero c 1 5 &>/dev/null + mdev -s else udev_hotplug fi @@ -402,17 +392,16 @@ case $dhcp in pump) error "$error_pump" ;; - # udhcpc is part of busybox + # udhcpc is part of busybox; then we expect to have mknod installed udhcpc) [ -n $vci ] && vci="-V $vci" testmkd /usr/share/udhcpc + test -c /dev/urandom || mknod /dev/urandom c 1 9 2>/dev/null ln -s /bin/dhcpmkconfig /usr/share/udhcpc/default.script udhcpc -b -q $vci -s /usr/share/udhcpc/default.script -i eth0 2>/dev/null ;; - *) - ;; esac -echo "dhcp finished" > /tmp/dhcp-done +echo "dhcp finished at $(sysup)" > /tmp/dhcp-done } ############################################################################# @@ -903,10 +892,7 @@ esac # setup initial boot scripts (for most standard distributions, gentoo is to # be handled differently) initial_boot () { -for i in ${D_RCDIRS} ${D_INITBOOTD} ; do - rm -f /mnt/etc/$i/* -done -count=10 +local count=10 # boot.ld is a special runlevel script generated within initialramfs which # should be executed before the normal runlevel scripts. Proper shutdown is # not needed!? |