From ceaf9e8217f29f6c499d03c62612b2eb50e8ed09 Mon Sep 17 00:00:00 2001 From: John Voltz Date: Thu, 6 Mar 2008 18:59:14 +0000 Subject: updates and additions for avr32 arch --- .../valka/target_skeleton/etc/rc.d/00.virtualfs | 24 ++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100755 target/device/valka/target_skeleton/etc/rc.d/00.virtualfs (limited to 'target/device/valka/target_skeleton/etc/rc.d/00.virtualfs') diff --git a/target/device/valka/target_skeleton/etc/rc.d/00.virtualfs b/target/device/valka/target_skeleton/etc/rc.d/00.virtualfs new file mode 100755 index 000000000..6c1a627a8 --- /dev/null +++ b/target/device/valka/target_skeleton/etc/rc.d/00.virtualfs @@ -0,0 +1,24 @@ +#!/bin/ash +. /etc/rc.subr + +start() { + echo -n " * Mounting virtual filesystems:" + mount_fs proc /proc proc + mount_fs sys /sys sysfs + mount_fs config /config configfs + mount_fs tmp /tmp tmpfs + mount_fs run /var/run tmpfs + mkdir_fs /var/run/lock + if mount_fs dev /dev tmpfs "size=512k,mode=0755"; then + mkdir_fs /dev/pts + mkdir_fs /dev/shm + fi + mount_fs ptr /dev/pts devpts + echo "" +} + +stop() { + return 0 +} + +rc_run_command "$1" -- cgit v1.2.3