summaryrefslogtreecommitdiffstats
path: root/firewall_wizard/scripts/compute_ext_device.sh
diff options
context:
space:
mode:
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
+