source: bootcd/config/sbin/init @ 08cf024

Last change on this file since 08cf024 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
Line 
1#!/bin/bash
2# SYN-3 live cd installer script
3#
4#
5# Put any local setup commands in here:
6echo 0 0 0 0 > /proc/sys/kernel/printk
7
8export PATH=/bin:/sbin:/usr/sbin:/usr/bin:/usr/X11/bin
9export PS1='\$ '
10
11
12mkdir initrd proc tmp sys >/dev/null 2>&1
13chmod 1777 tmp
14mount -t proc proc /proc
15mount -t sysfs sysfs /sys
16
17
18splashstep
19
20#Remote access instellen? (Voor regressie tests)
21if [ -e /etc/remote.conf ]; then
22        source /etc/remote.conf
23        ifconfig eth0 $IP
24        /etc/rc.d/rc.sshd start
25fi
26
27#textmode install
28if 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
34else
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
51fi
52
53sync
54
55#Remote access weer uitschakellen
56if [ -e /etc/remote.conf ]; then
57        ifconfig eth0 0.0.0.0
58        killall -9 sshd
59fi
60
61umount /proc
62umount /sys
63
64exit 0
65
Note: See TracBrowser for help on using the repository browser.