18 lines
344 B
Bash
18 lines
344 B
Bash
|
#!/bin/sh
|
||
|
|
||
|
set -e
|
||
|
|
||
|
if [ "$1" = start ]; then
|
||
|
|
||
|
PATH=/usr/bin:/usr/sbin:/bin:/sbin
|
||
|
|
||
|
mkdir -p /dev/pts /dev/shm
|
||
|
mount -n -t tmpfs -o nodev,nosuid tmpfs /dev/shm
|
||
|
mount -n -t devpts -o gid=5 devpts /dev/pts
|
||
|
|
||
|
# /run, and various directories within it
|
||
|
mount -n -t tmpfs -o mode=775 tmpfs /run
|
||
|
mkdir /run/lock /run/udev
|
||
|
|
||
|
fi
|