source: images/thinclient/root/sbin/init

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