#!/bin/sh . /etc/profile set -x printf "Starting *MIN*imum system\n" mkdir -p /proc /sys mountpoint -q /proc || mount -t proc proc /proc -o nosuid,noexec,nodev,hidepid=2 mountpoint -q /sys || mount -t sysfs sys /sys -o nosuid,noexec,nodev mkdir -p /dev/pts mountpoint -q /dev/pts || mount -n -t devpts devpts /dev/pts -o \ mode=0620,gid=5,nosuid,noexec,noatime mdev -s mkdir -p /dev/shm mountpoint -q /dev/shm || mount -n -t tmpfs shm /dev/shm -o \ mode=1777,nosuid,nodev,noatime mountpoint -q /sys/fs/cgroup || mount -n -t cgroup nodev /sys/fs/cgroup printf "Setting up loopback.\n" [ -d /sys/class/net/lo ] && ifconfig lo up if [ -e /etc/net ] ; then . /etc/net ; fi