Last change
on this file since 26ffad7 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:
731 bytes
|
Rev | Line | |
---|
[c5c522c] | 1 | #!/bin/bash |
---|
| 2 | |
---|
| 3 | echo " [ SYN-3 live environment ]" |
---|
| 4 | |
---|
| 5 | #get rid of open initrd descriptors |
---|
| 6 | exec > /dev/console |
---|
| 7 | exec 2> /dev/console |
---|
| 8 | exec < /dev/console |
---|
| 9 | |
---|
| 10 | #clearup memory used by initrd |
---|
| 11 | #NOTE: use the 'pivotimage' initrd-parameter to prepare for this! |
---|
| 12 | umount /initrd |
---|
| 13 | blockdev --flushbufs /dev/ram0 |
---|
| 14 | |
---|
| 15 | #prepare environment |
---|
| 16 | export PATH=/bin:/sbin:/usr/sbin:/usr/bin:/usr/X11/bin |
---|
| 17 | export PS1='\$ ' |
---|
| 18 | mkdir proc tmp sys >/dev/null 2>&1 |
---|
| 19 | chmod 1777 tmp |
---|
| 20 | mount -t proc proc /proc |
---|
| 21 | mount -t devpts devpts /dev/pts |
---|
| 22 | mount -t sysfs sysfs /sys |
---|
| 23 | |
---|
| 24 | echo "Running startup script..." |
---|
| 25 | cd /mnt/cdrom |
---|
| 26 | bash ./start |
---|
| 27 | |
---|
| 28 | #cleanup environment |
---|
| 29 | umount /proc |
---|
| 30 | umount /dev/pts |
---|
| 31 | umount /sys |
---|
| 32 | |
---|
| 33 | #script should never exit |
---|
| 34 | #exit 1, causing the initrd to handle this error nicely |
---|
| 35 | exit 1 |
---|
Note: See
TracBrowser
for help on using the repository browser.