new start scripts
[wyse_ntpd.git] / src / buildroot-2013.05 / custom / filesystem / etc / init.d / S02custom_pre_startup
1 #!/bin/sh
2
3 # deal with our mounts
4 mkdir /proc > /dev/null 2>&1
5 mount -t proc proc /proc
6 mkdir /sys > /dev/null 2>&1
7 mount -t sysfs sys /sys
8 mkdir -p /dev/pts > /dev/null 2>&1
9 mount -t devpts devpts /dev/pts
10 mount /tmp > /dev/null 2>&1
11
12
13 # create out gps0
14 ln -s /dev/ttyS0 /dev/gps0
15 mknod -m 0664 /dev/pps0 c 252 0
16 ln -s /dev/pps0 /dev/gpspps0
17
18 # mount the config file system
19 mkdir /fs > /dev/null 2>&1
20 mount /dev/sda1 /fs > /dev/null 2>&1
21
22 if [ -f /fs/config/system ]
23 then
24         . /fs/config/system
25 fi
26
27 if [ -f /fs/config/dropbear_dss_host_key ]
28 then
29         cp /fs/config/dropbear_dss_host_key /etc/dropbear
30         chmod 600 /etc/dropbear/dropbear_dss_host_key
31 fi
32
33 if [ -f /fs/config/dropbear_rsa_host_key ]
34 then
35         cp /fs/config/dropbear_rsa_host_key /etc/dropbear
36         chmod 600 /etc/dropbear/dropbear_rsa_host_key
37 fi