diff --git a/board/common/overlay/etc/init.d/S33hostapd b/board/common/overlay/etc/init.d/S33hostapd index b8d6759589..7bee37fb4c 100755 --- a/board/common/overlay/etc/init.d/S33hostapd +++ b/board/common/overlay/etc/init.d/S33hostapd @@ -14,14 +14,7 @@ link_watch_timeout=20 test -f $watch_conf && source $watch_conf -if ! [[ -f $conf ]]; then - if [[ -f $boot_conf ]]; then - cp $boot_conf $conf - elif [[ -f $sys_conf ]]; then - cp $sys_conf $conf - fi -fi - +prepare_conf $conf $sys_conf $boot_conf test -f $conf || exit 0 test -n "$os_version" || source /etc/init.d/base