summaryrefslogtreecommitdiffstats
path: root/firewall_wizard/scripts/store_fwall.sh
diff options
context:
space:
mode:
authorArnaud Desmons <adesmons@mandriva.com>2002-09-05 07:37:06 +0000
committerArnaud Desmons <adesmons@mandriva.com>2002-09-05 07:37:06 +0000
commitf7cca6ea32444a7764d54989bf360530d07d6092 (patch)
tree779049ed3b297fa40354f497a5e0d6ca86505096 /firewall_wizard/scripts/store_fwall.sh
parent52d4a220029dac288c8b86c3271ce9ab5fbdc6c2 (diff)
downloaddrakwizard-f7cca6ea32444a7764d54989bf360530d07d6092.tar
drakwizard-f7cca6ea32444a7764d54989bf360530d07d6092.tar.gz
drakwizard-f7cca6ea32444a7764d54989bf360530d07d6092.tar.bz2
drakwizard-f7cca6ea32444a7764d54989bf360530d07d6092.tar.xz
drakwizard-f7cca6ea32444a7764d54989bf360530d07d6092.zip
untouched
Diffstat (limited to 'firewall_wizard/scripts/store_fwall.sh')
-rwxr-xr-xfirewall_wizard/scripts/store_fwall.sh16
1 files changed, 16 insertions, 0 deletions
diff --git a/firewall_wizard/scripts/store_fwall.sh b/firewall_wizard/scripts/store_fwall.sh
new file mode 100755
index 00000000..80f6b109
--- /dev/null
+++ b/firewall_wizard/scripts/store_fwall.sh
@@ -0,0 +1,16 @@
+#!/bin/bash
+# script for wizard firewall configuration
+#
+# store the value of device and security level in /etc/sysconfig/mdk_serv
+
+file=/etc/sysconfig/mdk_serv
+
+# store the external device value
+dtmp=`echo ${wiz_ext_device} |sed -e 's/^\(\w*\).*$/\1/'`
+chg_val ${file} wiz_ext_device ${dtmp}
+
+# store the security level
+chg_val ${file} wiz_firewall_level ${wiz_firewall_level}
+
+exit 0
+