diff options
-rwxr-xr-x | scripts/netcfg-daemon | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/scripts/netcfg-daemon b/scripts/netcfg-daemon index 98f96d6..b3111da 100755 --- a/scripts/netcfg-daemon +++ b/scripts/netcfg-daemon @@ -16,7 +16,12 @@ case "$1" in if [[ ${#NETWORKS[@]} -eq 1 ]]; then case $NETWORKS in last) - [[ -e $LAST_STATE ]] || exit_err "No recorded netcfg state to restore" + if [[ ! -e $LAST_STATE ]]; then + report_err "No recorded netcfg state to restore" + # This counts as successful startup since the daemon + # should be stopped on shutdown. + exit 0 + fi # The order in LAST_STATE is meaningless so we can just as # well start the profiles in parallel. |