diff options
Diffstat (limited to '')
| -rwxr-xr-x | chroot/make_devices.sh | 5 | 
1 files changed, 5 insertions, 0 deletions
| diff --git a/chroot/make_devices.sh b/chroot/make_devices.sh index d333615..f4191bd 100755 --- a/chroot/make_devices.sh +++ b/chroot/make_devices.sh @@ -1,5 +1,10 @@  #!/bin/sh +if [ ! "$EUID" = 0 ];then +  echo "this scripts must be run as root" +  exit 1; +fi +  make_devices() {    env mknod -m 0666 $1/dev/tty c 5 0    chown root:tty $1/dev/tty | 
