Office_Networks/NONE-CKUBU3/sbin/rebind
2019-11-09 00:43:54 +01:00

21 lines
304 B
Bash
Executable File

#!/bin/bash
case "$1" in
on)
set -x
mount --bind /proc /ro/proc
mount --bind /sys /ro/sys
mount --bind /dev /ro/dev
mount --bind /dev/pts /ro/dev/pts
;;
off)
set -x
umount /ro/dev/pts
umount /ro/dev
umount /ro/sys
umount /ro/proc
;;
*)
echo "Use: $0 (on|off)"
esac