]> rtime.felk.cvut.cz Git - can-eth-gw.git/blob - distro/customroot/etc/init.d/rcS
Merge branch 'master' of ssh://rtime.felk.cvut.cz/can-eth-gw
[can-eth-gw.git] / distro / customroot / etc / init.d / rcS
1 #!/bin/sh
2 mount -t proc none /proc
3 mount -t sysfs none /sys
4 mount -t 9p -o trans=virtio shared_tag /mnt/share
5 mknod /dev/null c 1 3
6 # setup eth
7 ip link set eth0 up
8 udhcpc
9 # can
10 ip link add dev vcan0 type vcan
11 ifconfig lo up
12 ifconfig vcan0 up
13 # canethgw modul
14 mkdir -p /lib/modules/`uname -r`/
15 ln -s /lib/modules/canethgw.ko /lib/modules/`uname -r`/
16
17 # run configuration specific script
18 if [ -x /task ]; then
19         /task
20 fi
21