diff --git a/board/common/overlay/etc/init.d/S43firewall b/board/common/overlay/etc/init.d/S43firewall index 3e049c18d8..6ff91fc33a 100755 --- a/board/common/overlay/etc/init.d/S43firewall +++ b/board/common/overlay/etc/init.d/S43firewall @@ -4,18 +4,11 @@ sys_conf="/etc/firewall.sh" boot_conf="/boot/firewall.sh" conf="/data/etc/firewall.sh" -if ! [[ -f $conf ]]; then - if [[ -f $boot_conf ]]; then - cp $boot_conf $conf - elif [[ -f $sys_conf ]]; then - cp $sys_conf $conf - fi -fi - -test -f $conf || exit 0 - test -n "$os_version" || source /etc/init.d/base +prepare_conf $conf $sys_conf $boot_conf +test -f $conf || exit 0 + start() { msg_begin "Starting firewall"