summaryrefslogtreecommitdiffstats
path: root/firewall_wizard/scripts/compute_ext_device.sh
blob: 718517c6ff5488b6c7010e8e497f2670f667ced5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
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