Skip to content
Snippets Groups Projects
Unverified Commit 54d12b0d authored by Michal Hrusecky's avatar Michal Hrusecky :mouse:
Browse files

branding: base-files: Rebase patch with default wan settings

parent d6a2aa6a
Branches
Tags
1 merge request!123Turris OS 5.0 (HBK)
From 3c99354c880dc8ee24195f2b3876fd0c46bd3504 Mon Sep 17 00:00:00 2001
From e208044a7414f2e2a66b0a6bb9b576461d0a2861 Mon Sep 17 00:00:00 2001
From: Michal Hrusecky <Michal@Hrusecky.net>
Date: Sun, 22 Sep 2019 22:17:29 +0200
Subject: [PATCH] base-files: Do not setup dhcp on WAN by default
......@@ -9,18 +9,18 @@ To force people to the wizard to set password.
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/package/base-files/files/lib/functions/uci-defaults.sh b/package/base-files/files/lib/functions/uci-defaults.sh
index 5ca14df..efd67b0 100755
index c2c6dc3..59182df 100755
--- a/package/base-files/files/lib/functions/uci-defaults.sh
+++ b/package/base-files/files/lib/functions/uci-defaults.sh
@@ -41,7 +41,7 @@ _ucidef_set_interface() {
*)
case "$name" in
lan) proto="static" ;;
- wan) proto="dhcp" ;;
+ wan) proto="none" ;;
*) proto="none" ;;
esac
;;
@@ -47,7 +47,7 @@ ucidef_set_interface() {
if ! json_is_a protocol string; then
case "$network" in
lan) json_add_string protocol static ;;
- wan) json_add_string protocol dhcp ;;
+ wan) json_add_string protocol none ;;
*) json_add_string protocol none ;;
esac
fi
--
2.23.0
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment