06.12.2012 Aufrufe

Technische Dokumentation zum Unix-Verbund ... - Dr. Hubert Feyrer

Technische Dokumentation zum Unix-Verbund ... - Dr. Hubert Feyrer

Technische Dokumentation zum Unix-Verbund ... - Dr. Hubert Feyrer

MEHR ANZEIGEN
WENIGER ANZEIGEN

Sie wollen auch ein ePaper? Erhöhen Sie die Reichweite Ihrer Titel.

YUMPU macht aus Druck-PDFs automatisch weboptimierte ePaper, die Google liebt.

4.3.6 JumpStart-Scripten 65<br />

#<br />

# /etc/auto_master<br />

#<br />

echo Erstelle /etc/auto_master<br />

backup $ROOT/etc/auto_master<br />

cp $MNT/etc/auto_master $ROOT/etc<br />

chattr root bin 644 $ROOT/etc/auto_master<br />

#<br />

# /etc/vfstab<br />

#<br />

echo Erstelle /etc/vfstab<br />

backup $ROOT/etc/vfstab<br />

if grep >/dev/null "Poolweite Aenderungen ab hier" $ROOT/etc/vfstab<br />

then<br />

echo ' ' vfstab bereits modifiziert.<br />

else<br />

cat $MNT/etc/vfstab >>$ROOT/etc/vfstab<br />

fi<br />

chattr root sys 644 $ROOT/etc/vfstab<br />

#<br />

# /etc/init.d/postboot<br />

#<br />

echo Erstelle /etc/init.d/postboot<br />

cp $MNT/etc/init.d/postboot $ROOT/etc/init.d/postboot<br />

chattr root root 755 $ROOT/etc/init.d/postboot<br />

ln $ROOT/etc/init.d/postboot $ROOT/etc/rc2.d/S95postboot<br />

#<br />

# Mountpoints erzeugen<br />

#<br />

echo "Erzeuge (Auto)Mountpoints:\c"<br />

for i in /home1 /home2 /home3 /home4<br />

do<br />

if [ ! -d $ROOT/$i/. ]; then<br />

[ -h $ROOT/$i ] && rm $ROOT/$i<br />

[ -d $ROOT/$i ] && rmdir $ROOT/$i<br />

ln -s /net/rfhs8012$i $ROOT/$i<br />

echo " $i\c"<br />

fi<br />

done<br />

echo " /home5\c"<br />

ln -s /net/sunsauer/home5 $ROOT/home5<br />

rmdir $ROOT/home<br />

echo '.'<br />

#<br />

# Root-Login via Netzwerk<br />

#<br />

. $MNT/setup/rootLoginViaNet<br />

#<br />

# /soft -> /home1/soft<br />

#<br />

if [ ! -h $ROOT/soft ]; then<br />

echo 'Enabling /soft'<br />

(c) 1996-2003 <strong>Hubert</strong> <strong>Feyrer</strong> Stand: 21. Oktober 2003

Hurra! Ihre Datei wurde hochgeladen und ist bereit für die Veröffentlichung.

Erfolgreich gespeichert!

Leider ist etwas schief gelaufen!