summaryrefslogtreecommitdiffstats
path: root/firewall_wizard/scripts/compute_ext_device.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/compute_ext_device.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/compute_ext_device.sh')
-rwxr-xr-xfirewall_wizard/scripts/compute_ext_device.sh19
1 files changed, 19 insertions, 0 deletions
diff --git a/firewall_wizard/scripts/compute_ext_device.sh b/firewall_wizard/scripts/compute_ext_device.sh
new file mode 100755
index 00000000..718517c6
--- /dev/null
+++ b/firewall_wizard/scripts/compute_ext_device.sh
@@ -0,0 +1,19 @@
+#!/bin/bash
+# script for wizard firewall configuration
+#
+# return on stdout the default value for network device
+
+
+device=
+file=/etc/sysconfig/network
+
+[ -f ${file} ] && device=`get_val ${file} GATEWAYDEV`
+
+[ -z "${device}" ] && device="ppp0"
+
+echo_debug "proposed ext device : ${device}"
+
+echo ${device}
+
+exit 0
+