added basic Slackware support (patch by Stephen Pearce)
authorEnrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
Tue, 30 Dec 2003 13:50:31 +0000 (13:50 +0000)
committerEnrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
Tue, 30 Dec 2003 13:50:31 +0000 (13:50 +0000)
git-svn-id: http://svn.linux-vserver.org/svn/util-vserver/branches/SYSCALL_SWITCH@503 94cd875c-1c1d-0410-91d2-eb244daf1a30

util-vserver/scripts/vserver

index 0c74cee..28b112a 100755 (executable)
@@ -474,6 +474,8 @@ elif [ "$2" = "start" ] ; then
                        STARTCMD="/etc/init.d/rc $INITDEFAULT"
                elif [ -x $VROOTDIR/$1/usr/bin/emerge ] ; then
                        STARTCMD="/sbin/rc default"
+               elif [ -x $VROOTDIR/$1/etc/rc.d/rc.M ] ; then
+                       STARTCMD="/etc/rc.d/rc.M"                       
                fi
 
                DISCONNECT=
@@ -589,6 +591,8 @@ elif [ "$2" = "stop" ] ; then
                        STOPCMD="/etc/init.d/rc 6"
                elif [ -x $VROOTDIR/$1/usr/bin/emerge ] ; then
                        STOPCMD="/sbin/rc shutdown"
+               elif [ -x $VROOTDIR/$1/etc/rc.d/rc.6 ] ; then
+                       STOPCMD="/etc/rc.d/rc.6"
                fi
 
                for f in $S_FLAGS dummy