diff options
Diffstat (limited to 'initramfs/distro-specs')
-rw-r--r-- | initramfs/distro-specs/suse/functions-10.1 | 32 | ||||
-rw-r--r-- | initramfs/distro-specs/suse/functions-10.2 | 36 | ||||
-rw-r--r-- | initramfs/distro-specs/suse/functions-10.3 | 36 | ||||
-rw-r--r-- | initramfs/distro-specs/suse/functions-9.3 | 8 |
4 files changed, 1 insertions, 111 deletions
diff --git a/initramfs/distro-specs/suse/functions-10.1 b/initramfs/distro-specs/suse/functions-10.1 index c71dae9d..eff30cc2 100644 --- a/initramfs/distro-specs/suse/functions-10.1 +++ b/initramfs/distro-specs/suse/functions-10.1 @@ -13,38 +13,6 @@ # in general SuSE base definitions ... General changes should be done there, # version specific changes for the 10.1 go here. -# some specific stuff to initialize -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 usb_id scsi_id vol_id edd_id ata_id path_id hwup ifup ; do - echo -e "#!$shell\n:" >/sbin/$i -done -mkdir /lib/udev /usr/sbin -for i in 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/* -} - -# udev service -udev_hotplug () { -local result=0 -if [ -x /bin/udevd ] ; then - echo "" > /proc/sys/kernel/hotplug - udevd --daemon || result=1 - trigger_device_events - usleep 50 -else error "$df_errudev" nonfatal -fi -return $result -} - # afs client # configure afs client config_afs () { diff --git a/initramfs/distro-specs/suse/functions-10.2 b/initramfs/distro-specs/suse/functions-10.2 index 1e3956c6..02fdfd89 100644 --- a/initramfs/distro-specs/suse/functions-10.2 +++ b/initramfs/distro-specs/suse/functions-10.2 @@ -13,29 +13,6 @@ # in general SuSE base definitions ... General changes should be done there, # version specific changes for the 10.2 go here. -# some specific stuff to initialize -preinit () { -# fake the existence of some helper binaries/scripts (which are not of any use -# within initialramfs) -local item -if [ ! -x /bin/busybox ] ; then - for item in hwup ifup ; do - echo -e "#!/bin/sh\n:" >/sbin/${item} - done - mkdir -p /lib/udev /usr/sbin - for item 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 \ - trigger_firmware_loading.sh ; do - echo -e "#!/bin/sh\n# do nothing here\n:" >/lib/udev/${item} - done - echo -e "#!/bin/sh\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:\n\ -dialout:x:16:\naudio:x:17:\nvideo:x:33:\nvboxusers:!:1000:" > /etc/group - echo -e "root:x:0:0:::\nasterisk:x:106:16:::" > /etc/passwd -fi -} # display manager configuration config_kdm () { # first define directories for kdm @@ -49,19 +26,6 @@ config_dm_entry yes # write configuration file with general config from /etc/functions config_kdm_template } -# udev service - auto creation of device files -udev_hotplug () { -local result=0 -echo "Starting udev" -if [ -x /bin/udevd ] ; then - echo "" > /proc/sys/kernel/hotplug - udevd --daemon 2>/dev/null || result=1 - trigger_device_events - usleep 50 -else error "$df_errudev" nonfatal -fi -return $result -} # configure dbus (inter application communication for kde and gnome), hal # (hardware abstraction layer - used e.g. by powersaved), resmgr and # policykitd (resource manager/policykitd - the user gets permissions to diff --git a/initramfs/distro-specs/suse/functions-10.3 b/initramfs/distro-specs/suse/functions-10.3 index c43f2a94..63523a9d 100644 --- a/initramfs/distro-specs/suse/functions-10.3 +++ b/initramfs/distro-specs/suse/functions-10.3 @@ -13,29 +13,6 @@ # defined in general SuSE base definitions ... General changes should be done # there, version specific changes for the 10.3 go here. -# some specific stuff to initialize -preinit () { -# fake the existence of some helper binaries/scripts (which are not of any use -# within initialramfs) -local item -if [ ! -x /bin/busybox ] ; then - for item in hwup ifup ; do - echo -e "#!/bin/sh\n:" >/sbin/${item} - done - mkdir -p /lib/udev /usr/sbin - for item 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 \ - trigger_firmware_loading.sh ; do - echo -e "#!/bin/sh\n# do nothing here\n:" >/lib/udev/${item} - done - echo -e "#!/bin/sh\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:\n\ -dialout:x:16:\naudio:x:17:\nvideo:x:33:\nvboxusers:!:1000:" > /etc/group - echo -e "root:x:0:0:::\nasterisk:x:106:16:::" > /etc/passwd -fi -} # display manager configuration config_kdm () { # first define directories for kdm @@ -49,19 +26,6 @@ config_dm_entry yes # write configuration file with general config from /etc/functions config_kdm_template } -# udev service - auto creation of device files -udev_hotplug () { -local result=0 -echo "Starting udev" -if [ -x /bin/udevd ] ; then - echo "" > /proc/sys/kernel/hotplug - udevd --daemon 2>/dev/null || result=1 - trigger_device_events - usleep 50 -else error "$df_errudev" nonfatal -fi -return $result -} # configure dbus (inter application communication for kde and gnome), hal # (hardware abstraction layer - used e.g. by powersaved), resmgr and # policykitd (resource manager/policykitd - the user gets permissions to diff --git a/initramfs/distro-specs/suse/functions-9.3 b/initramfs/distro-specs/suse/functions-9.3 index 36bf5b13..efd88b35 100644 --- a/initramfs/distro-specs/suse/functions-9.3 +++ b/initramfs/distro-specs/suse/functions-9.3 @@ -13,13 +13,7 @@ # in general SuSE base definitions ... General changes should be done there, # version specific changes for the 9.3 go here. -# distro specific stuff to initialize -postinit () { - # for some reason the udev daemon does not create the needed device files - udevstart -} - -# udev/hotplug - auto device discovery service +# udev/hotplug - auto device discovery service (deprecated) udev_hotplug () { local result=0 [ -d /etc/hotplug -a -d /etc/hotplug.d ] || error "$df_errhotpl" nonfatal |