![kueller](/assets/img/avatar_default.png)
git-svn-id: svn://svn.compuextreme.de/Viitor/V962/Viitor_nfs-utils@5546 504e572c-2e33-0410-9681-be2bf7408885
44 lines
756 B
Bash
44 lines
756 B
Bash
#!/bin/bash
|
|
#genpkg script für nfs-utils
|
|
#(c) Rainmaker MultiMedia OHG
|
|
#
|
|
#$Author$
|
|
#$Date$
|
|
#$Revision$
|
|
#
|
|
#$Log$
|
|
#Revision 1.2 2001/10/17 08:28:38 kueller
|
|
#Rechte korrektur für init script
|
|
#
|
|
#Revision 1.1.1.1 2001/09/23 00:27:56 kueller
|
|
#Neustart wg. Datenverlust
|
|
#
|
|
#
|
|
|
|
if [ -d /var/install/sysvinit* ]; then
|
|
WDIR=`pwd`
|
|
if [ ! -d var/lib/nfs ]; then
|
|
mkdir -p var/lib/nfs
|
|
fi
|
|
if [ ! -f var/lib/nfs/etab ]; then
|
|
touch var/lib/nfs/etab
|
|
fi
|
|
if [ ! -f var/lib/nfs/rmtab ]; then
|
|
touch var/lib/nfs/rmtab
|
|
fi
|
|
cd etc/init.d
|
|
chmod 755 nfs.server
|
|
mkdir rc{0,1,2,3,4,5,6}.d
|
|
for i in 0 1 6; do
|
|
cd rc$i.d
|
|
ln -s ../nfs.server K40nfs.server
|
|
cd ..
|
|
done
|
|
for i in 2 3 4 5; do
|
|
cd rc$i.d
|
|
ln -s ../nfs.server S60nfs.server
|
|
cd ..
|
|
done
|
|
cd $WDIR
|
|
fi
|