diff options
Diffstat (limited to 'target/device/valka/target_skeleton/etc/rc.d/00.virtualfs')
-rwxr-xr-x | target/device/valka/target_skeleton/etc/rc.d/00.virtualfs | 24 |
1 files changed, 24 insertions, 0 deletions
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" |