]> rtime.felk.cvut.cz Git - can-eth-gw.git/blobdiff - distro/customroot/etc/init.d/rcS
benchmarking and debugging distributions added; benchmark script added
[can-eth-gw.git] / distro / customroot / etc / init.d / rcS
diff --git a/distro/customroot/etc/init.d/rcS b/distro/customroot/etc/init.d/rcS
new file mode 100755 (executable)
index 0000000..9f55f78
--- /dev/null
@@ -0,0 +1,21 @@
+#!/bin/sh
+mount -t proc none /proc
+mount -t sysfs none /sys
+mount -t 9p -o trans=virtio shared_tag /mnt/share
+mknod /dev/null c 1 3
+# setup eth
+ip link set eth0 up
+udhcpc
+# can
+ip link add dev vcan0 type vcan
+ifconfig lo up
+ifconfig vcan0 up
+# canethgw modul
+mkdir -p /lib/modules/`uname -r`/
+ln -s /lib/modules/canethgw.ko /lib/modules/`uname -r`/
+
+# run configuration specific script
+if [ -x /task ]; then
+       /task
+fi
+