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