Annotation of badi/public_scripts/switchgate/dhclient-exit-hooks.d/switchgate-helper, revision 1.1
1.1 ! adi 1:
! 2: # dhclient-exit-hook: switchgate-helper
! 3:
! 4: RUN="yes"
! 5:
! 6:
! 7: if [ "$RUN" = "yes" ]; then
! 8:
! 9: SWITCHGATE_CONFDIR=$(/usr/local/sbin/switchgate -C)
! 10:
! 11: if [ ! -d $SWITCHGATE_CONFDIR ]; then
! 12: mkdir "$SWITCHGATE_CONFDIR"
! 13: fi
! 14:
! 15: # Register switchgate routers
! 16: echo "$new_routers" | sed -e "s/ /\n/g" > "$SWITCHGATE_CONFDIR"/dhcp.$interface
! 17: fi
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>