From 89bf6b9720e44a834a8cf075888b99026549af43 Mon Sep 17 00:00:00 2001 From: Calin Crisan Date: Fri, 11 Jan 2019 13:47:09 +0200 Subject: [PATCH] S33hostapd: use prepare_conf --- board/common/overlay/etc/init.d/S33hostapd | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) 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