From 8cd82995c9c01fac59aa5ff6ef17a098d73db5d9 Mon Sep 17 00:00:00 2001 From: Dirk von Suchodoletz Date: Thu, 30 Mar 2006 20:10:13 +0000 Subject: more debug level, exclude-common for rsync (files and directories common for all distros), ... git-svn-id: http://svn.openslx.org/svn/openslx/ld4@132 95ad53e4-c205-0410-b2fa-d234c58c8868 --- initrd/distro-specs/suse/functions-10.1 | 9 ++++----- initrd/distro-specs/suse/functions-9.3 | 21 +++++++++++++++++++-- 2 files changed, 23 insertions(+), 7 deletions(-) (limited to 'initrd/distro-specs/suse') diff --git a/initrd/distro-specs/suse/functions-10.1 b/initrd/distro-specs/suse/functions-10.1 index a41cd223..b58b9131 100644 --- a/initrd/distro-specs/suse/functions-10.1 +++ b/initrd/distro-specs/suse/functions-10.1 @@ -3,17 +3,15 @@ # changes should be done there, version specific changes for # the 10.0 here. # -# Author(s): Dirk von Suchodoletz , 16-02-2006 -# Blabla -# Blub +# Author(s): Dirk von Suchodoletz , 30-03-2006 # # Copyright: (c) 2006 - RZ Universitaet Freiburg # -# Version: 0.2.1d +# Version: 0.2.1e # distro specific stuff to initialize preinit () { -for i in usb_id scsi_id vol_id edd_id ata_id hwup ifup ; do +for i in usb_id scsi_id vol_id edd_id ata_id path_id hwup ifup ; do echo -e "#!/bin/sh\n:" >/sbin/$i done mkdir /lib/udev /usr/sbin @@ -23,6 +21,7 @@ done echo -e "#!/bin/sh\n:" >/usr/sbin/alsactl chmod u+x /sbin/* /lib/udev/* /usr/sbin/* } + postinit () { : } diff --git a/initrd/distro-specs/suse/functions-9.3 b/initrd/distro-specs/suse/functions-9.3 index bd988d52..83ec77f6 100644 --- a/initrd/distro-specs/suse/functions-9.3 +++ b/initrd/distro-specs/suse/functions-9.3 @@ -20,6 +20,22 @@ postinit () { udevstart } +# distro specific function called from servconfig script +config_distro () { +# enable magic sysrequest for the clients +echo -e "# /etc/sysconfig/sysctl - file modified by $0 version $version"\ + > /mnt/etc/${D_SYSCONFDIR}/sysctl.new +sed -e "s,ENABLE_SYSRQ=.*,ENABLE_SYSRQ=\"yes\"," \ + /mnt/etc/${D_SYSCONFDIR}/sysctl > /etc/sysctl +cat /etc/sysctl >> /mnt/etc/${D_SYSCONFDIR}/sysctl +# add specific path /var/X11R6/bin ... +echo -e "# stuff generated by $0 (out of InitRD written $date)\n\ +test \"\$UID\" -ge 100 && PATH=\"\$PATH:/var/X11R6/bin:.\"\n\ +QTDIR=/usr/lib/qt3\nexport QTDIR\nno_proxy='localhost'\n\ +export no_proxy" > /etc/SuSEconfig/profile +} + + # udev/hotplug - auto device discovery service udev_hotplug () { local result=0 @@ -58,8 +74,9 @@ if [ -f /mnt/etc/init.d/ntp ] ; then fi testmkd /mnt/var/lib/ntp/var/run/ntp &>/dev/null if [ "x$start_ntp" = "xinitial" ] ; then - echo -e "\t# entries added by $0: $date\n\t( ntpdate -s -b $ntp_servers\ - >${LOGFILE} 2>&1 && {\n\t which hwclock &>/dev/null && hwclock -w;} ) &" \ + echo -e "\t# entries added by $0 (InitRamFS from $date)\n\ +\t( ntpdate -s -b $ntp_servers >${LOGFILE} 2>&1 && {\n\t which \ +hwclock &>/dev/null && hwclock -w;} ) &" \ >>/mnt/etc/${D_INITDIR}/boot.ld elif [ "x$start_ntp" = "xyes" ] ; then rllinker "ntp" "$start" "$stop" -- cgit v1.2.3-55-g7522