Skip to content

Commit b758233

Browse files
authored
Update start_chroot_script
Add service to avoid boot warnings about failed dnsmasq startups.
1 parent 4c753d9 commit b758233

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/modules/hotspot_cb1/start_chroot_script

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,11 @@ run_as_base() {
2121
echo_green "Install ratos hotspot tool dependencies..."
2222
check_install_pkgs dnsmasq
2323

24+
# dnsmasq should only run when create_ap launches it. Disable the stock
25+
# service to avoid boot warnings about failed dnsmasq startups.
26+
systemctl_if_exists disable dnsmasq || true
27+
systemctl_if_exists stop dnsmasq || true
28+
2429
echo_green "Downloading ratos hotspot tool..."
2530
pushd "/home/${BASE_USER}"
2631
if [[ -d "/home/${BASE_USER}/create_ap/.git" ]]; then

0 commit comments

Comments
 (0)