3 # This is a script to run at startup of a bespoke sub-host
5 NOW=$(date +"%Y%m%d-%H%M%S")
11 mkdir -p /dev/pts /dev/shm /run
12 if ! grep "^none /run tmpfs" /proc/mounts ; then
13 mount -t tmpfs -osize=80M none /run
14 mount -t tmpfs -osize=20M none /dev/shm
15 mount -t devpts none /dev/pts
16 mount -t sysfs none /sys
17 mkdir -p /run/lock /run/user
20 # Restart auto interfaces
21 for IF in $(grep "^auto" /etc/network/interfaces) ; do
22 [ "$IF" = auto ] && continue
29 for S in ${SERVICES[@]} ; do
33 } >& /var/log/startup-$NOW.log