Changeset 10594 in hybrid for branches/releng-9.0/nanobsd


Ignore:
Timestamp:
Apr 26, 2012, 3:37:50 PM (13 years ago)
Author:
rick
Message:

Well... default route for ileiden is mandatory of course.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/releng-9.0/nanobsd/files/etc/dhclient-exit-hooks

    r10590 r10594  
    66# Rick van der Zwet <rick@wirelessleiden.nl>
    77
     8# Little hack to load the available functions in case we are running this as an
     9# standalone script (for testing mostly).
     10if [ -z "$exit_status" ]; then
     11 grep -v 'exit $exit_status' /sbin/dhclient-script | eval
     12fi
     13
    814. /etc/rc.subr
    915
    1016: ${service_proxy_normal="NO"}
     17: ${service_proxy_ileiden="NO"}
    1118: ${service_accesspoint="NO"}
    1219
    1320load_rc_config 'ileiden'
    1421
    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
     22update_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
    1826
    19 
    20 update_pf_conf() {
    2127  if checkyesno "service_proxy_normal" && checkyesno "service_accesspoint"; then
    2228    if is_default_interface; then
     
    3642}
    3743
     44reason=${reason:-$FORCE}
     45
    3846case $reason in
    3947  BOUND|RENEW|REBIND|REBOOT)
Note: See TracChangeset for help on using the changeset viewer.