Compare commits

...

No commits in common. "v963" and "v961" have entirely different histories.
v963 ... v961

3 changed files with 14 additions and 81 deletions

View File

@ -1,24 +0,0 @@
description "If configured, startup ypbind prozess"
author "Harald Kueller <harald.kueller@compuextreme.de>"
version 1.0
emits none special
start on ( runlevel [2345] and (started rpc))
stop on stopping rpc
console none
pre-start script
if [ ! -d /etc/sysconfig/nis ]; then
mkdir /etc/sysconfig/nis
fi
if [ -f /etc/sysconfig/nis/defaultdomain ]; then
domainname `cat /etc/sysconfig/nis/defaultdomain`
else
exit 10
fi
/sbin/CheckPid /var/run/ypbind.pid
end script
expect daemon
exec /usr/sbin/start_ypbind

View File

@ -29,20 +29,18 @@
#
WDIR=`pwd`
if [ -d /var/install/sysvinit* ]; then
mkdir -p etc/sysconfig/nis
cd etc/init.d
chmod 755 ypclient
mkdir rc{0,1,2,3,4,5,6}.d
for i in 0 1 6; do
cd rc$i.d
ln -s ../ypclient K75ypclient
cd ..
done
for i in 2 3 4 5; do
cd rc$i.d
ln -s ../ypclient S13ypclient
cd ..
done
fi
mkdir -p etc/sysconfig/nis
cd etc/init.d
chmod 755 ypclient
mkdir rc{0,1,2,3,4,5,6}.d
for i in 0 1 6; do
cd rc$i.d
ln -s ../ypclient K75ypclient
cd ..
done
for i in 2 3 4 5; do
cd rc$i.d
ln -s ../ypclient S13ypclient
cd ..
done
cd $WDIR

View File

@ -1,41 +0,0 @@
#!/bin/bash
#Framework, welches ein komplettes Linux System aus den Sourcen erstellt
#dieses Framework wird im CVS Repository
#:pserver:cvs.tramp-bbs.de:/opt/cvs zur Verfügung gestellt
#
#Lage dieser Datei im Archiv: $HeadURL$
#
#(c) 2003 Harald Kueller, Germany
#This program is free software; you can redistribute it and/or
#modify ist under the terms of the GNU General Public License
#as published by the Free Software Foundation; either version
#2 of the License, or (at your option) any later version.
#
#This program is distributed in the hope that it will be useful,
#but WITHOUT ANY WARRANTY; without even the implied warranty of
#MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
#See the GNU General Public License for more details.
#
#You should have received a copy of the GNU General Public License
#along with this program; if not write to the Free Software Foundation,
#Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
#
#Beschreibung:
#Script zum Start von ypbind abhaengig vom
#vorhandensein einer yp.conf in /etc.
#ist yp.conf nicht vorhanden, soll bind broadcasts machen,
#ansonsten sich mit dem in yp.conf genannten nis server verbinden.
#
#Aufrufparameter:
#
#Letzte Änderung von: $Author$
#Datum der letzten Änderung: $Date$
#Version der Datei: $Revision$
#
if [ -f /etc/yp.conf ]; then
exec ypbind
else
exec ypbind -broadcast
fi