diff options
author | Dirk von Suchodoletz | 2007-01-31 20:11:02 +0100 |
---|---|---|
committer | Dirk von Suchodoletz | 2007-01-31 20:11:02 +0100 |
commit | 1ad51ac519e7afc970a5ddf991c9141e140bf7f3 (patch) | |
tree | 2b35cf904a5e029ee2da9a355976a47d7c6ab670 /initramfs/distro-specs/suse | |
parent | Use the right variable name of the existing path. (diff) | |
download | core-1ad51ac519e7afc970a5ddf991c9141e140bf7f3.tar.gz core-1ad51ac519e7afc970a5ddf991c9141e140bf7f3.tar.xz core-1ad51ac519e7afc970a5ddf991c9141e140bf7f3.zip |
Fixed slow stage3 in higher debuglevels (sleep -> usleep in
/etc/functions)
Heavy rewrite of base scripts init/hwautocfg/servconfig. Moved
lots of stuff from hwautocfg to init and servconfig to get a
cleaner structure (do not wait for processes of init or servconfig
in hwautocfg)
Cleanup started, old codefragments will be removed soon ...
git-svn-id: http://svn.openslx.org/svn/openslx/trunk@661 95ad53e4-c205-0410-b2fa-d234c58c8868
Diffstat (limited to 'initramfs/distro-specs/suse')
-rw-r--r-- | initramfs/distro-specs/suse/functions-10.2 | 29 |
1 files changed, 16 insertions, 13 deletions
diff --git a/initramfs/distro-specs/suse/functions-10.2 b/initramfs/distro-specs/suse/functions-10.2 index 3530b4d6..b53f04c1 100644 --- a/initramfs/distro-specs/suse/functions-10.2 +++ b/initramfs/distro-specs/suse/functions-10.2 @@ -18,20 +18,23 @@ preinit () { # fake the existence of some helper binaries (which are not of any use # within initialramfs) shell="/bin/sh" -[ -x /bin/busybox ] && shell="/bin/ash" -for i in hwup ifup ; do - echo -e "#!$shell\n:" >/sbin/$i -done -mkdir /lib/udev /usr/sbin -for i in usb_id scsi_id vol_id edd_id ata_id path_id cdrom_id idedma.sh mount.sh \ - rename_netiface firmware.sh create_floppy_devices ; do - echo -e "#!$shell\n:" >/lib/udev/$i -done -echo -e "#!$shell\n:" >/usr/sbin/alsactl -rm /etc/udev/rules.d/60-persistent-storage.rules 2>/dev/null -chmod u+x /sbin/* /lib/udev/* /usr/sbin/* -echo -e "tty:x:5:\ndisk:x:6:\nlp:x:7:\nkmem:x:9:\nuucp:x:14:\naudio:x:17:\n\ +if [ -x /bin/busybox ] ; then + shell="/bin/ash" +else + for i in hwup ifup ; do + echo -e "#!$shell\n:" >/sbin/$i + done + mkdir /lib/udev /usr/sbin + for i in usb_id scsi_id vol_id edd_id ata_id path_id cdrom_id idedma.sh \ + mount.sh rename_netiface firmware.sh create_floppy_devices ; do + echo -e "#!$shell\n:" >/lib/udev/$i + done + echo -e "#!$shell\n:" >/usr/sbin/alsactl + rm /etc/udev/rules.d/60-persistent-storage.rules 2>/dev/null + chmod u+x /sbin/* /lib/udev/* /usr/sbin/* + echo -e "tty:x:5:\ndisk:x:6:\nlp:x:7:\nkmem:x:9:\nuucp:x:14:\naudio:x:17:\n\ video:x:33:" > /etc/group +fi } # udev service |