summaryrefslogtreecommitdiffstats
path: root/target/device/valka/target_skeleton/etc/rc.d/00.virtualfs
blob: 6c1a627a8dc8a62d0a2e626219529b9f784bdb21 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
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"