1 |
#!/bin/sh |
#!/bin/sh |
2 |
# |
# |
3 |
# $Header: /home/cvsd/alx-cvs/alx-src/alxinstall-ng/bin/alxinstall-ng.sh,v 1.1.1.1 2005-04-18 19:01:41 niro Exp $ |
# $Header: /home/cvsd/alx-cvs/alx-src/alxinstall-ng/bin/alxinstall-ng.sh,v 1.3 2005-04-18 21:28:22 niro Exp $ |
4 |
# |
# |
5 |
# AutoSta_LX Installation Script |
# AutoSta_LX Installation Script |
6 |
# version: 0.8b |
# version: 0.8b |
321 |
"1" "AutoSta_LX installieren" \ |
"1" "AutoSta_LX installieren" \ |
322 |
"2" "Uebersicht gefundener Laufwerke" \ |
"2" "Uebersicht gefundener Laufwerke" \ |
323 |
"3" "Beenden und neustarten" \ |
"3" "Beenden und neustarten" \ |
324 |
"4" "Beenden ohne neustarten" ` |
"4" "Beenden und eine Shell starten" ` |
325 |
RES=$? |
RES=$? |
326 |
if [ "$RES" == "1" ];then |
if [ "$RES" == "1" ];then |
327 |
exit 1 |
exit 1 |
338 |
;; |
;; |
339 |
"3") install_do_reboot |
"3") install_do_reboot |
340 |
;; |
;; |
341 |
|
"4") /bin/bash --login -i |
342 |
|
;; |
343 |
esac |
esac |
344 |
fi |
fi |
345 |
done |
done |
526 |
setup (hd0) |
setup (hd0) |
527 |
quit |
quit |
528 |
EOF |
EOF |
529 |
exit |
exit 0 |
530 |
CHROOTEOF |
CHROOTEOF |
531 |
fi |
fi |
532 |
|
|
539 |
setup (hd0) |
setup (hd0) |
540 |
quit |
quit |
541 |
EOF |
EOF |
542 |
exit |
exit 0 |
543 |
CHROOTEOF |
CHROOTEOF |
544 |
fi |
fi |
545 |
|
|
546 |
##enters chroot |
##enters chroot |
547 |
mount -t proc proc $INSTALLPATH/proc |
mount -t proc none $INSTALLPATH/proc |
548 |
chroot $INSTALLPATH /bin/bash |
# bind /dev to get the devices right, |
549 |
|
# if bootet from a 2.6 kernel with udev |
550 |
|
mount -o bind /dev $INSTALLPATH/dev |
551 |
|
chroot $INSTALLPATH /bin/bash --rcfile /root/.bashrc -i |
552 |
umount $INSTALLPATH/proc |
umount $INSTALLPATH/proc |
553 |
|
umount $INSTALLPATH/dev |
554 |
rm $INSTALLPATH/root/.bashrc |
rm $INSTALLPATH/root/.bashrc |
555 |
} |
} |
556 |
|
|