#!/bin/dash

### configuration
. $BOOTSTATE_PATH
WPAGUI_ACTIVE_FLAG=/etc/wpagui

### main
[ "$CONFIGURED_NET" ] && exit # leave if network already configured at boot
[ -f $WPAGUI_ACTIVE_FLAG ] || exit # leave if we are not the active network manager
exec wpa_gui -t
