Changeset 10594 in hybrid for branches/releng-9.0
- Timestamp:
- Apr 26, 2012, 3:37:50 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/releng-9.0/nanobsd/files/etc/dhclient-exit-hooks
r10590 r10594 6 6 # Rick van der Zwet <rick@wirelessleiden.nl> 7 7 8 # Little hack to load the available functions in case we are running this as an 9 # standalone script (for testing mostly). 10 if [ -z "$exit_status" ]; then 11 grep -v 'exit $exit_status' /sbin/dhclient-script | eval 12 fi 13 8 14 . /etc/rc.subr 9 15 10 16 : ${service_proxy_normal="NO"} 17 : ${service_proxy_ileiden="NO"} 11 18 : ${service_accesspoint="NO"} 12 19 13 20 load_rc_config 'ileiden' 14 21 15 # Little hack to load the available functions in case we are running this as an 16 # standalone script (for testing mostly). 17 [ -z "$exit_status" ] && . /sbin/dhclient-script 22 update_pf_conf() { 23 # Make sure not to nuke the default route on an ileiden proxy, 24 # as it will rendering it usefull 25 checkyesno "service_proxy_ileiden" || return 18 26 19 20 update_pf_conf() {21 27 if checkyesno "service_proxy_normal" && checkyesno "service_accesspoint"; then 22 28 if is_default_interface; then … … 36 42 } 37 43 44 reason=${reason:-$FORCE} 45 38 46 case $reason in 39 47 BOUND|RENEW|REBIND|REBOOT)
Note:
See TracChangeset
for help on using the changeset viewer.