From 163493d81db129892587f7e886ef892d1253fec5 Mon Sep 17 00:00:00 2001 From: kueller Date: Mon, 3 Jan 2011 10:48:06 +0000 Subject: [PATCH] Neue Version V963 git-svn-id: svn://svn.compuextreme.de/Viitor/V963/Viitor_netkit-bootparamd@5933 504e572c-2e33-0410-9681-be2bf7408885 --- etc/init.d/bootparamd | 48 +++++++++++++++++++++++++++++++++++++++++++ init/genpkg | 29 ++++++++++++++++++++++++++ 2 files changed, 77 insertions(+) create mode 100644 etc/init.d/bootparamd create mode 100644 init/genpkg diff --git a/etc/init.d/bootparamd b/etc/init.d/bootparamd new file mode 100644 index 0000000..0fc1fcd --- /dev/null +++ b/etc/init.d/bootparamd @@ -0,0 +1,48 @@ +#!/bin/sh +#bootparamd des systemvinit prozesses +#Script Framework - Automatisiertes Erzeugen der Monsum Linux Distribution +#(c) Rainmaker MultiMedia OHG +# +#$Author$ +#$Date$ +#$Revision$ +# +#$Log$ +#Revision 1.1 2001/11/17 18:29:26 kueller +#Initial revision +# +#Revision 1.1.1.1 2001/09/23 00:02:08 kueller +#Neustart wg. Datenverlust +# +#Revision 1.1.1.1 2001/08/08 10:02:32 kueller +#sysvinit addons +# +# + +source /etc/init.d/functions + +case "$1" in + start) + if [ -f /etc/bootparams ]; then + echo -n "Starting rpc.bootparamd" + loadproc /usr/sbin/rpc.bootparamd + fi + ;; + + stop) + if [ -f /etc/bootparams ]; then + echo -n "Stopping rpc.bootparamd" + killproc rpc.bootparamd + fi + ;; + restart) + $0 stop + /usr/bin/sleep 1 + $0 start + ;; + *) + echo "Usage: $0 {start|stop|restart}" + exit 1 + ;; + +esac diff --git a/init/genpkg b/init/genpkg new file mode 100644 index 0000000..a8442b7 --- /dev/null +++ b/init/genpkg @@ -0,0 +1,29 @@ +#!/bin/bash +#Init Links für bootparam +#Script Framework - Automatisiertes Erzeugen der Monsum Linux Distribution +#(c) Rainmaker MultiMedia OHG +# +#$Author$ +#$Date$ +#$Revision$ +# +#$Log$ +#Revision 1.1 2001/11/17 18:29:26 kueller +#Initial revision +# +# + +WDIR=`pwd` +mkdir etc/init.d/rc{0,1,2,3,4,5,6}.d +cd etc/init.d +for i in 0 1 2 6; do + cd rc$i.d + ln -s ../bootparamd K75bootparamd + cd .. +done +for i in 3 4 5; do + cd rc$i.d + ln -s ../bootparamd S12bootparamd + cd .. +done +cd $WDIR