diff options
Diffstat (limited to 'initrd/distro-specs/suse/functions-9.3')
-rw-r--r-- | initrd/distro-specs/suse/functions-9.3 | 48 |
1 files changed, 24 insertions, 24 deletions
diff --git a/initrd/distro-specs/suse/functions-9.3 b/initrd/distro-specs/suse/functions-9.3 index 1b58c332..53270443 100644 --- a/initrd/distro-specs/suse/functions-9.3 +++ b/initrd/distro-specs/suse/functions-9.3 @@ -37,8 +37,8 @@ export no_proxy" > /mnt/etc/SuSEconfig/profile echo -e "DXS VERSION = 4.0a\nINITRAMFS GENERATION DATE = $date" \ >> /mnt/etc/SuSE-release # add the halt link to the 0 and 6 runlevel directories - ln -sf ../halt /mnt/etc/init.d/rc0.d/S20halt - ln -sf ../halt /mnt/etc/init.d/rc6.d/S20reboot + ln -sf ../halt /mnt/etc/${D_INITDIR}/rc0.d/S20halt + ln -sf ../halt /mnt/etc/${D_INITDIR}/rc6.d/S20reboot } # udev/hotplug - auto device discovery service @@ -61,7 +61,7 @@ local stop="$3" # passed via configuration for i in rc3.d/K$stop$script rc5.d/K$stop$script \ rc3.d/S$start$script rc5.d/S$start$script ; do - ln -sf ../$script /mnt/etc/init.d/$i + ln -sf ../$script /mnt/etc/${D_INITDIR}/$i done } @@ -71,7 +71,7 @@ done config_ntp () { local start="07" local stop="14" -if [ -f /mnt/etc/init.d/ntp ] ; then +if [ -f /mnt/etc/${D_INITDIR}/ntp ] ; then if ! strinfile "ntp:" /mnt/etc/passwd ; then echo -e "ntp:x:74:65534:NTP daemon:/var/lib/ntp:/bin/false" \ >>/mnt/etc/passwd @@ -99,7 +99,7 @@ fi # function for configuration of cron services config_cron () { if [ "x$start_cron" = "xyes" ] ; then - if [ -f /mnt/etc/init.d/cron ] ; then + if [ -f /mnt/etc/${D_INITDIR}/cron ] ; then testmkd /mnt/var/spool/cron/lastrun testmkd /mnt/var/spool/cron/tabs echo -e "# /etc/crontab - file generated by $0:\n\ @@ -115,7 +115,7 @@ fi # syslog service config_syslog () { if [ "x$start_syslog" = "xyes" ] ; then - if [ -f /mnt/etc/init.d/syslog ] ; then + if [ -f /mnt/etc/${D_INITDIR}/syslog ] ; then # how to configure remote log server? # logging servers might be specified in $log_servers (from e.g. dhcp) echo -e "# File modified by $0 within initial ramdisk" \ @@ -133,7 +133,7 @@ fi # secure shell service config_sshd () { if [ "x$start_sshd" = "xyes" ] ; then - if [ -f /mnt/etc/init.d/sshd ] ; then + if [ -f /mnt/etc/${D_INITDIR}/sshd ] ; then testmkd /mnt/var/lib/sshd testmkd /mnt/var/lib/empty rllinker "sshd" "12" "10" @@ -146,7 +146,7 @@ fi # snmp agent for remote monitoring config_snmp () { if [ "x$start_snmp" = "xyes" ] ; then - if [ -f /mnt/etc/init.d/snmpd ] ; then + if [ -f /mnt/etc/${D_INITDIR}/snmpd ] ; then rllinker "snmpd" "24" "02" testmkd /mnt/var/lib/net-snmp >/dev/null 2>&1 fi @@ -155,19 +155,19 @@ if [ "x$start_snmp" = "xyes" ] ; then fi } -# configure X display manager (/etc/sysconfig/displaymanager) +# configure X display manager (/etc/${D_SYSCONFDIR}/displaymanager) config_dm_entry () { local dm="$1" # should be stated that entries were made (fixmee how??) sed -e "s,DISPLAYMANAGER=.*,DISPLAYMANAGER=\"$start_xdmcp\"," \ -e "s,.*_XSERVER.*,DISPLAYMANAGER_STARTS_XSERVER=\"$dm\"," \ - /mnt/etc/sysconfig/displaymanager > /etc/displaymanager -cp /etc/displaymanager /mnt/etc/sysconfig/displaymanager + /mnt/etc/${D_SYSCONFDIR}/displaymanager > /etc/displaymanager +cp /etc/displaymanager /mnt/etc/${D_SYSCONFDIR}/displaymanager # start the display manager as early as possible, but avoid that is # started twice during bootup - quickhack ... #ln -sf /etc/${D_INITDIR}/xdm /mnt/etc/${D_INITDIR}/rc5.d/S01xdm ln -sf ../xdm /mnt/etc/${D_INITDIR}/rc5.d/K20xdm -echo -e "\t/etc/init.d/xdm start >${LOGFILE} 2>&1\n\ +echo -e "\t/etc/${D_INITDIR}/xdm start >${LOGFILE} 2>&1\n\ \t( sleep 120; ln -sf ../xdm /etc/${D_INITDIR}/rc5.d/S01xdm \ >${LOGFILE} 2>&1) &\n" >>/mnt/etc/${D_INITDIR}/boot.ld } @@ -304,11 +304,11 @@ config_dm_entry yes # configure bluetooth services config_bt () { - echo -e "# /etc/sysconfig/bluetooth - file modified by $0"\ + echo -e "# /etc/${D_SYSCONFDIR}/bluetooth - file modified by $0"\ > /etc/bluetooth sed -e "s,START_SERVICES.*,START_SERVICES=\"yes\"," \ - /mnt/etc/sysconfig/bluetooth >> /etc/bluetooth - cp /etc/bluetooth /mnt/etc/sysconfig/bluetooth + /mnt/etc/${D_SYSCONFDIR}/bluetooth >> /etc/bluetooth + cp /etc/bluetooth /mnt/etc/${D_SYSCONFDIR}/bluetooth } # consolefont @@ -334,7 +334,7 @@ config_dreshal () { local start="05" local stop="18" if [ "x$start_dreshal" = "xyes" ]; then - if [ -f /mnt/etc/init.d/dbus ] ; then + if [ -f /mnt/etc/${D_INITDIR}/dbus ] ; then strinfile "messagebus:" /mnt/etc/passwd || \ echo "messagebus:x:100:101:User for D-BUS:/var/run/dbus:/bin/false" \ >> /mnt/etc/passwd @@ -346,13 +346,13 @@ if [ "x$start_dreshal" = "xyes" ]; then >>/mnt/etc/${D_INITDIR}/boot.ld rllinker "dbus" "$start" "$stop" fi - if [ -f /mnt/etc/init.d/resmgr ] ; then + if [ -f /mnt/etc/${D_INITDIR}/resmgr ] ; then testmkd /mnt/var/run/resmgr/classes start="0"`expr $start + 1` stop="0"`expr $start - 1` rllinker "resmgr" "$start" "$stop" fi - if [ -f /mnt/etc/init.d/hal ] ; then + if [ -f /mnt/etc/${D_INITDIR}/hal ] ; then strinfile "haldaemon:" /mnt/etc/passwd || \ echo "haldaemon:x:105:103:User for haldaemon:/var/run/hal:/bin/false" \ >> /mnt/etc/passwd @@ -371,7 +371,7 @@ fi # configure automounter config_automount () { -if [ -f /mnt/etc/sysconfig/autofs ] ; then +if [ -f /mnt/etc/${D_SYSCONFDIR}/autofs ] ; then testmkd /var/lock/subsys echo -e "# /etc/auto.master - file generated by $0:\n\ /misc\t/etc/auto.misc" >/mnt/etc/auto.master @@ -388,18 +388,18 @@ if [ -f /mnt/etc/sysconfig/autofs ] ; then echo -e "*\t-rsize=32768,wsize=32768,rw\t${automnt_src}/&" \ >> /mnt/etc/auto.${automnt_dir} fi - echo -e "# /etc/sysconfig/autofs - file modified by\n#\t$0:\n#" \ + echo -e "# /etc/${D_SYSCONFDIR}/autofs - file modified by\n#\t$0:\n#" \ > /etc/autofs sed -e "s,AUTOFS_OPTIONS.*,AUTOFS_OPTIONS=\"--timeout 3\"," \ - /mnt/etc/sysconfig/autofs >> /etc/autofs - cp /etc/autofs /mnt/etc/sysconfig/autofs + /mnt/etc/${D_SYSCONFDIR}/autofs >> /etc/autofs + cp /etc/autofs /mnt/etc/${D_SYSCONFDIR}/autofs config_portmap rllinker "autofs" "18" "04" fi } # start name service caching daemon config_nscd () { -if [ -f /mnt/etc/init.d/nscd ] ; then +if [ -f /mnt/etc/${D_INITDIR}/nscd ] ; then testmkd /mnt/var/run/nscd rllinker "nscd" "02" "16" fi @@ -436,7 +436,7 @@ local info="$3" case "$1" in init) echo -e "#!/bin/sh\n# skeleton of /etc/${D_INITDIR}/$name created \ -by $0\n. /etc/rc.status\n. /etc/sysconfig/logfile\nrc_reset\ncase \ +by $0\n. /etc/rc.status\n. /etc/${D_SYSCONFDIR}/logfile\nrc_reset\ncase \ \"\$1\" in\n start)\n\techo -n \"$info\"" >>/mnt/etc/${D_INITDIR}/$name chmod u+x /mnt/etc/${D_INITDIR}/$name ;; |