aboutsummaryrefslogtreecommitdiffstats
path: root/init-sh
diff options
context:
space:
mode:
Diffstat (limited to 'init-sh')
-rwxr-xr-xinit-sh/init.sh2
-rw-r--r--init-sh/lib.sh2
2 files changed, 2 insertions, 2 deletions
diff --git a/init-sh/init.sh b/init-sh/init.sh
index 82d3964..a748541 100755
--- a/init-sh/init.sh
+++ b/init-sh/init.sh
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/bin/bash
if [[ -z $1 ]]; then
echo "Usage : $0 [0-5]"
diff --git a/init-sh/lib.sh b/init-sh/lib.sh
index e8798c7..c26f933 100644
--- a/init-sh/lib.sh
+++ b/init-sh/lib.sh
@@ -152,7 +152,7 @@ LiloUpdate() {
echo "Do you want a password authentication at boot time ?"
echo "Be very carefull,"
echo "this will prevent your server to reboot without an operator to enter password".
- WaitAnswer;
+ [ -t 0 ] && WaitAnswer;
if [[ ${answer} == yes ]]; then
echo -n "Please enter the password which will be used at boot time : "
read password