summaryrefslogtreecommitdiffstats
path: root/projects/scII-bmwm/etc/init.d/rcS
blob: 141415476f754c5c44eab5425ba48a67f7c6badb (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
#!/bin/sh
#
# /etc/init.d/rcS
#
# Configuration for BMW
#
# 2004/02/27 Robert Schwebel <r.schwebel@pengutronix.de>
#

# announce that we are there
/etc/init.d/banner

echo -n "mounting filesystems..."
mount -a 
echo "done."

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

echo "remounting root fs r/w"
mount /dev/root / -o remount,rw
echo "done."

/etc/init.d/syslog	start
/etc/init.d/dropbear	start
/etc/init.d/serial	start
/etc/init.d/ppp-drivers	start

# run some scripts only once for initialisation
if [ ! -f /etc/gtk-2.0/gdk-pixbuf.loaders ]; then
	echo "creating /etc/gtk-2.0/gdk-pixbuf.loaders"
	/usr/bin/gdk-pixbuf-query-loaders 		\
		/usr/lib/gdk-pixbuf-loaders/*.so > 	\
		/etc/gtk-2.0/gdk-pixbuf.loaders
fi;
if [ ! -f /etc/pango/pango.modules ]; then
	echo "creating /etc/pango/pango.modules"
	/usr/bin/pango-querymodules 			\
		/usr/lib/pango/1.4/modules/*.so	>	\
		/etc/pango/pango.modules
fi;

# create I-Drive communication fifo
rm -f /tmp/idrive.fifo
mkfifo /tmp/idrive.fifo
export IDRIVE_NAMED_PIPE=/tmp/idrive.fifo

# /usr/X11R6/bin/xmodmap /etc/xmodmap

# start penguzilla
/etc/init.d/xfree86    start
/etc/init.d/penguzilla start