summaryrefslogtreecommitdiffstats
path: root/projects/frako/etc/init.d/rcS
blob: 908e02666b9cdc5a53c3e734ded23d5dd02dd442 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
#!/bin/sh
#
# /etc/init.d/rcS
#
# Configuration for Frako
#
# 2003/11/20 Robert Schwebel <r.schwebel@pengutronix.de>
#            Benedikt Spranger <b.spranger@pengutronix.de>
# 16.02.2004 Gert Fischer, FRAKO Kondensatoren und Anlagenbau GmbH
#            www.frako.de
#

echo -n "mounting filesystems..."
mount -a 2>/dev/null
echo "done."

echo -n "creating links in /dev..."
ln -s /dev/vc/0 /dev/tty0
ln -s /dev/vc/1 /dev/tty1
ln -s /dev/vc/2 /dev/tty2
ln -s /dev/vc/3 /dev/tty3
ln -s /dev/vc/4 /dev/tty4
ln -s /dev/vc/5 /dev/tty5
ln -s /dev/vc/6 /dev/tty6
ln -s /dev/vc/7 /dev/tty7
ln -s /dev/vc/8 /dev/tty8
ln -s /dev/vc/9 /dev/tty9
ln -s /dev/fb/0 /dev/fb0
ln -s /dev/tts/0 /dev/ttyS0
ln -s /dev/tts/1 /dev/ttyS1
chmod 666 /dev/tts/0
chmod 666 /dev/tts/1
echo "done."

#modprobe ppp_async

loadkmap < /etc/boottime.kmap

echo -n "---creating Network-Device lo..."
ifconfig lo up 127.0.0.1
echo "done."

echo -n "---creating FRAKO directories and links..."
chmod 775 /home
chown root:users /home

mkdir /home/frako
chmod 775 /home/frako
chown frako:users /home/frako

mkdir /home/frako/alarm
chmod 755 /home/frako/alarm
chown frako:users /home/frako/alarm

mkdir /home/frako/conf
chmod 755 /home/frako/conf
chown frako:users /home/frako/conf

mkdir /home/frako/up
chmod 775 /home/frako/up
chown frako:users /home/frako/up


mkdir /home/system
chmod 755 /home/system
chown system:users /home/system

mkdir /home/system/alarm
chmod 755 /home/system/alarm
chown system:users /home/system/alarm

mkdir /home/system/conf
chmod 755 /home/system/conf
chown system:users /home/system/conf

mkdir /home/system/history
chmod 755 /home/system/history
chown system:users /home/system/history

mkdir /home/system/temp
chmod 755 /home/system/temp
chown system:users /home/system/temp

mount /data/alarm /home/frako/alarm -o bind
mount /home/system/conf  /home/frako/conf -o bind

mount /data/alarm /home/system/alarm -o bind
mount /data/history /home/system/history -o bind

echo "done."

echo -n "---Bootzeitpunkt festhalten in /home/system/boottime.log..."
date >> /home/system/boottime.log
chown system:users /home/system/boottime.log
sync
echo "done."