]> git.sur5r.net Git - bacula/rescue/commitdiff
Update
authorKern Sibbald <kern@sibbald.com>
Wed, 27 Dec 2006 15:49:07 +0000 (15:49 +0000)
committerKern Sibbald <kern@sibbald.com>
Wed, 27 Dec 2006 15:49:07 +0000 (15:49 +0000)
rescue/linux/cdrom/Makefile.in
rescue/linux/cdrom/roottree/etc/inittab
rescue/linux/cdrom/roottree/etc/rc [new file with mode: 0755]
rescue/linux/cdrom/roottree/etc/sysinit
rescue/linux/cdrom/roottree/init

index 7bf13494e7a14b35ca439a5dcb51fea5dd19e6fe..22289c26a558265d0b161fe7c52ec69b99052275 100644 (file)
@@ -102,9 +102,11 @@ clean:
        @rm -f roottree/etc/modules.conf roottree/etc/syslog.conf
        @rm -rf roottree/etc/pam.d roottree/etc/ssh
        @rm -rf roottree/etc/security roottree/etc/init.d
+       @rm -rf roottree/etc/rc.d
        @rm -rf roottree/etc/udev roottree/etc/modprobe.conf
-       @rm -rf roottree/etc/dev.d roottre/etc/hotplug roottree/etc/modeprob.d
-       @rm -rf roottree/etc/sysconfig roottre/etc/syslog-ng
+       @rm -rf roottree/etc/dev.d roottre/etc/hotplug roottree/etc/modprobe.d
+       @rm -rf roottree/etc/modprobe.conf.local roottree/etc/hotplug
+       @rm -rf roottree/etc/sysconfig roottree/etc/syslog-ng
        @rm -rf roottree/bacula-*
        @rm -f cdtree/boot/isolinux/initrd.img
        @rm -f cdtree/boot/isolinux/isolinux.cfg
index e245f854a318fb7cd4645f27329a9f2501a49e78..0bf95f3284f1b01f83686eaa9ac3687742a4b0ac 100644 (file)
 id:2:initdefault:
 
 # System initialization.
-si::sysinit:/etc/rc.d/rc.sysinit
+si::sysinit:/etc/sysinit
 
 #shutdown
 l0:0:wait:/sbin/halt -fd  
 
 # normal run levels
 l1:1:wait:/bin/bash -i -l
-l2:2:wait:/etc/rc.d/rc 2
-l3:3:wait:/etc/rc.d/rc 3
-l4:4:wait:/etc/rc.d/rc 4
-l5:5:wait:/etc/rc.d/rc 5
+l2:2:wait:/etc/rc 2
+l3:3:wait:/etc/rc 3
+l4:4:wait:/etc/rc 4
+l5:5:wait:/etc/rc 5
 
 # reboot
 l6:6:wait:/sbin/reboot -fd
@@ -38,8 +38,8 @@ ca::ctrlaltdel:/sbin/halt -d
 
 
 # Run gettys in standard runlevels
-#1:2345:respawn:/bin/sh
-2:2345:respawn:/bin/sh
+1:2345:respawn:/bin/sh
+#2:2345:respawn:/bin/sh
 #3:2345:respawn:/bin/sh
 #4:2345:respawn:/bin/sh
 #5:2345:respawn:/bin/sh
diff --git a/rescue/linux/cdrom/roottree/etc/rc b/rescue/linux/cdrom/roottree/etc/rc
new file mode 100755 (executable)
index 0000000..84c6b1d
--- /dev/null
@@ -0,0 +1,7 @@
+#!/bin/sh
+#
+#  Bacula's version of what is usually in /etc/rc.d/rc -- pretty much empty
+#
+# Start/stop services when switching run levels
+#
+exit 0
index da71ecaf35dff95aff445524cd9fc30d830a95d3..bdcfec87a3a37498e9e2ac3e3cbf571e949f45f9 100755 (executable)
@@ -1,6 +1,9 @@
 #!/bin/sh
+#
+# Bacula's version of what is ususally in /etc/rc.d/rc.sysinit
+#
 
-echo "Start sysinit ..."
+echo "Start Bacula sysinit ..."
 
 PATH="/sbin:/usr/sbin:/bin:/usr/bin:/usr/X11R6/bin"
 export PATH
@@ -31,7 +34,7 @@ touch  /var/run/utmp /var/run/wtmp /var/log/wtmp
 chgrp utmp /var/run/utmp /var/log/wtmp
 chmod 0664 /var/run/utmp /var/log/wtmp
 
-syslogd -m 0
+[ -x /sbin/syslogd ] && syslogd -m 0
 klogd -x 
 
 echo "Attempting to mount CDDOM..."
index 43cbb3a3eb140eb32656a2082575baec0a64ae4a..d843649c0ccb3007f59e3c5a58ec2c2a99702cb6 100755 (executable)
@@ -3,7 +3,7 @@
 # First script called by Linux when booting
 #
 
-echo "======== init called ========"
+echo "Start Bacula init ..."
 sbin/sleep 3
 # sbin/chroot .
 #trap "" 1 2 3 15
@@ -18,20 +18,11 @@ sbin/mknod /dev/null c 1 3
 sbin/mknod /dev/zero c 1 5
 sbin/mkdir /dev/pts
 sbin/mkdir /dev/shm
-echo Starting udev
-sbin/udevstart
+if [ -x sbin/udevstart ] ; then
+   echo Starting udev
+   sbin/udev/start
+fi
 echo -n "/sbin/hotplug" > /proc/sys/kernel/hotplug
-echo "Loading scsi_mod.ko module"
-sbin/insmod /lib/scsi_mod.ko 
-echo "Loading sd_mod.ko module"
-sbin/insmod /lib/sd_mod.ko 
-echo "Loading aic7xxx.ko module"
-sbin/insmod /lib/aic7xxx.ko 
-echo "Loading libata.ko module"
-sbin/insmod /lib/libata.ko 
-echo "Loading ata_piix.ko module"
-sbin/insmod /lib/ata_piix.ko 
-sbin/udevstart
 
 # CMDLINE=`cat /proc/cmdline`
 # DEBUG=""