1 2 3 4 5 6 7 8 9 10 11
#!/bin/sh case "${1}" in start) [ ! -d /dev/pts ] && mkdir /dev/pts mount -a ;; stop) umount -a -r ;; esac