[Lunar-commits]
CVS: moonbase/utils/sysvinit BUILD, 1.3, 1.4 inittab,
1.2, 1.3 POST_INSTALL, 1.3, NONE
Auke Kok
sofar at lunar-linux.org
Thu Jun 10 09:23:01 GMT 2004
Update of /var/cvs/lunar/moonbase/utils/sysvinit
In directory dbguin.lunar-linux.org:/tmp/cvs-serv27453
Modified Files:
BUILD inittab
Removed Files:
POST_INSTALL
Log Message:
Reworked this after some extensive tests. Better installation tracking, no need to bump UPDATED tho, it's all cosmetics and internals. Should provide better updates on new installations
Index: BUILD
===================================================================
RCS file: /var/cvs/lunar/moonbase/utils/sysvinit/BUILD,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -d -r1.3 -r1.4
--- BUILD 22 Apr 2003 21:03:44 -0000 1.3
+++ BUILD 10 Jun 2004 09:22:58 -0000 1.4
@@ -3,6 +3,28 @@
make -C src &&
prepare_install &&
make -C src install &&
- install -m0755 $SCRIPT_DIRECTORY/service /sbin/service
+ install -m0755 $SCRIPT_DIRECTORY/service /sbin/service &&
+ mkdir -p /etc/rc0.d /etc/rc1.d /etc/rc2.d /etc/rc3.d /etc/rc4.d /etc/rc5.d /etc/rc6.d /etc/rcS.d /etc/init.d /var/run /var/log ||
+ # error out here in case of failure
+ exit 1
+
+ # the rest should be safe now:
+ if [ ! -e /etc/inittab ] ; then
+ install -m0600 $SCRIPT_DIRECTORY/inittab /etc/
+ fi
+
+ for SCRIPT in halt rc rcS reboot signals ; do
+ if [ ! -e /etc/init.d/$SCRIPT ] ; then
+ install -m0700 $SCRIPT_DIRECTORY/init.d/$SCRIPT /etc/init.d/
+ fi
+ done
+
+ ln -sf ../init.d/signals /etc/rc0.d/S80signals
+ ln -sf ../init.d/halt /etc/rc0.d/S90halt
+ ln -sf ../init.d/signals /etc/rc6.d/S80signals
+ ln -sf ../init.d/reboot /etc/rc6.d/S90reboot
+
+ touch /var/run/utmp /var/log/wtmp /var/log/btmp /var/log/lastlog
+ chmod 644 /var/run/utmp /var/log/wtmp /var/log/btmp /var/log/lastlog
) > $C_FIFO 2>&1
Index: inittab
===================================================================
RCS file: /var/cvs/lunar/moonbase/utils/sysvinit/inittab,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -d -r1.2 -r1.3
--- inittab 16 Feb 2003 18:31:09 -0000 1.2
+++ inittab 10 Jun 2004 09:22:58 -0000 1.3
@@ -11,6 +11,7 @@
# 5: same as 4, it is usually used for GUI login (xdm, gdm, kdm)
# 6: reboot the computer
+# what to do at normal runlevels:
l0:0:wait:/etc/init.d/rc 0
l1:1:wait:/etc/init.d/rc 1
l2:2:wait:/etc/init.d/rc 2
@@ -19,8 +20,16 @@
l5:5:wait:/etc/init.d/rc 5
l6:6:wait:/etc/init.d/rc 6
+# what to to with the three-finger salute
ca:12345:ctrlaltdel:/sbin/shutdown -t1 -a -r now
+# what to do on power events:
+#pf::powerwait:/etc/init.d/powerfail start
+#pf::powerfail:/etc/init.d/powerfail now
+#pn::powerfailnow:/etc/init.d/powerfail now
+#po::powerokwait:/etc/init.d/powerfail stop
+
+# which terminals should have consoles
c1:12345:respawn:/sbin/agetty 38400 tty1
c2:2345:respawn:/sbin/agetty 38400 tty2
c3:2345:respawn:/sbin/agetty 38400 tty3
@@ -28,8 +37,5 @@
c5:234:respawn:/sbin/agetty 38400 tty5
c6:234:respawn:/sbin/agetty 38400 tty6
-# xfs:5:once:/usr/X11R6/bin/xfs
-gdm:5:once:/usr/bin/gdm
-kdm:5:once:/usr/bin/kdm
-xdm:5:once:/usr/X11R6/bin/xdm
+# this generates the login prompt
issu::once:/sbin/make-issue
--- POST_INSTALL DELETED ---
More information about the Lunar-commits
mailing list