blob: 83d5179430bb3e26e47de762dd23a3b4875670f0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
#!/bin/sh /etc/rc.common
start()
{
log 'Mounting kernel virtual file systems'
if ! [ -e /proc/mounts ]; then
mount -t proc -o nodev,noexec,nosuid proc /proc || \
return ${?}
fi
if ! [ -e /sys/kernel ]; then
mount -t sysfs -o nodev,noexec,nosuid sysfs /sys || \
return ${?}
fi
}
stop()
{
log 'Unmounting kernel virtual file systems'
if [ -e /proc/mounts ]; then
umount /proc || return ${?}
fi
if [ -e /sys/kernel ]; then
umount /sys || return ${?}
fi
}
|