Last change
on this file since 105afb5 was
c5c522c,
checked in by Edwin Eefting <edwin@datux.nl>, 8 years ago
|
initial commit, transferred from cleaned syn3 svn tree
|
-
Property mode set to
100755
|
File size:
1.3 KB
|
Rev | Line | |
---|
[c5c522c] | 1 | #!/bin/bash |
---|
| 2 | # SYN-3 live cd installer script |
---|
| 3 | # |
---|
| 4 | # |
---|
| 5 | # Put any local setup commands in here: |
---|
| 6 | echo 0 0 0 0 > /proc/sys/kernel/printk |
---|
| 7 | |
---|
| 8 | export PATH=/bin:/sbin:/usr/sbin:/usr/bin:/usr/X11/bin |
---|
| 9 | export PS1='\$ ' |
---|
| 10 | |
---|
| 11 | |
---|
| 12 | mkdir initrd proc tmp sys >/dev/null 2>&1 |
---|
| 13 | chmod 1777 tmp |
---|
| 14 | mount -t proc proc /proc |
---|
| 15 | mount -t sysfs sysfs /sys |
---|
| 16 | |
---|
| 17 | |
---|
| 18 | splashstep |
---|
| 19 | |
---|
| 20 | #Remote access instellen? (Voor regressie tests) |
---|
| 21 | if [ -e /etc/remote.conf ]; then |
---|
| 22 | source /etc/remote.conf |
---|
| 23 | ifconfig eth0 $IP |
---|
| 24 | /etc/rc.d/rc.sshd start |
---|
| 25 | fi |
---|
| 26 | |
---|
| 27 | #textmode install |
---|
| 28 | if grep text /proc/cmdline &>/dev/null; then |
---|
| 29 | chvt 1 |
---|
| 30 | splashstep "Starting textmode installer" |
---|
| 31 | cd /mnt/cdrom/installer |
---|
| 32 | ./install.sh >/dev/null |
---|
| 33 | #grapical installer proberen |
---|
| 34 | else |
---|
| 35 | export PATH=/bin:/sbin:/usr/sbin:/usr/bin:/usr/X11R6/bin |
---|
| 36 | splashstep "Starting graphic installer" |
---|
| 37 | cd /mnt/cdrom/installer |
---|
| 38 | xinit /usr/bin/blackbox -rc /var/blackboxrc |
---|
| 39 | #install mislukt? |
---|
| 40 | if ! [ -e /INSTALLOK ]; then |
---|
| 41 | #komt door xserver probleem? |
---|
| 42 | if grep 'Fatal server error:' /var/log/Xorg.0.log >/dev/null; then |
---|
| 43 | #terugvallen op text |
---|
| 44 | splasherror "Graphic installer failed, falling back to textmode!" |
---|
| 45 | splashmode verbose |
---|
| 46 | cd /mnt/cdrom/installer |
---|
| 47 | ./install.sh >/dev/null |
---|
| 48 | fi |
---|
| 49 | fi |
---|
| 50 | splashmode silent |
---|
| 51 | fi |
---|
| 52 | |
---|
| 53 | sync |
---|
| 54 | |
---|
| 55 | #Remote access weer uitschakellen |
---|
| 56 | if [ -e /etc/remote.conf ]; then |
---|
| 57 | ifconfig eth0 0.0.0.0 |
---|
| 58 | killall -9 sshd |
---|
| 59 | fi |
---|
| 60 | |
---|
| 61 | umount /proc |
---|
| 62 | umount /sys |
---|
| 63 | |
---|
| 64 | exit 0 |
---|
| 65 | |
---|
Note: See
TracBrowser
for help on using the repository browser.