aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>1999-12-18 16:08:39 +0000
committerPascal Rigaux <pixel@mandriva.com>1999-12-18 16:08:39 +0000
commite96124a136bf4140f6e11091a07334d9790d0481 (patch)
tree56a384ddc0c7d6827a3e19c2d622d068dc2adedc
parent5c97a3edf62ae61932a471c85541784c71028b29 (diff)
downloadmsec-e96124a136bf4140f6e11091a07334d9790d0481.tar
msec-e96124a136bf4140f6e11091a07334d9790d0481.tar.gz
msec-e96124a136bf4140f6e11091a07334d9790d0481.tar.bz2
msec-e96124a136bf4140f6e11091a07334d9790d0481.tar.xz
msec-e96124a136bf4140f6e11091a07334d9790d0481.zip
no_comment
-rwxr-xr-xinit-sh/init.sh2
-rw-r--r--init-sh/lib.sh2
-rw-r--r--msec.spec5
3 files changed, 6 insertions, 3 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
diff --git a/msec.spec b/msec.spec
index f95f9a2..7c97d9d 100644
--- a/msec.spec
+++ b/msec.spec
@@ -1,7 +1,7 @@
Summary: Security Level & Program for the Linux Mandrake distribution
Name: msec
Version: 0.8
-Release: 2mdk
+Release: 3mdk
Source: msec-0.8.tar.bz2
Copyright: GPL
Group: System Environment/Base
@@ -35,6 +35,9 @@ rm -rf $RPM_BUILD_ROOT
/usr/bin/promisc_check
%changelog
+* Sat Dec 18 1999 Pixel <pixel@mandrakesoft.com>
+- no interactive questions if not a tty
+
* Thu Dec 16 1999 Yoann Vandoorselaere <yoann@mandrakesoft.com>
- Don't use msec parsing routine to hack inittab