From 28cb7634c7cdcbee40019aa62aa1183ae25d4899 Mon Sep 17 00:00:00 2001 From: Calin Crisan Date: Thu, 9 Feb 2017 21:45:04 +0200 Subject: [PATCH 1/2] start network-dependent services even when no active network connection is available --- board/common/overlay/etc/init.d/S50date | 4 ++-- board/common/overlay/etc/init.d/S60sshd | 2 +- board/common/overlay/etc/init.d/S61proftpd | 2 +- board/common/overlay/etc/init.d/S62smb | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/board/common/overlay/etc/init.d/S50date b/board/common/overlay/etc/init.d/S50date index d8231be6a2..ab547004dd 100755 --- a/board/common/overlay/etc/init.d/S50date +++ b/board/common/overlay/etc/init.d/S50date @@ -29,8 +29,8 @@ test -f $conf || exit 0 test -n "$os_version" || source /etc/init.d/base test -n "$os_debug" || source /etc/init.d/conf -has_net_conn || exit 0 - +test "$os_networkless" == "true" && exit 0 + date_timeout=10 date_method=http date_host="google.com" diff --git a/board/common/overlay/etc/init.d/S60sshd b/board/common/overlay/etc/init.d/S60sshd index f94b4639ce..37546b1161 100755 --- a/board/common/overlay/etc/init.d/S60sshd +++ b/board/common/overlay/etc/init.d/S60sshd @@ -7,7 +7,7 @@ test -f $conf || exit 0 test -n "$os_version" || source /etc/init.d/base test -n "$os_debug" || source /etc/init.d/conf -has_net_conn || exit 0 +test "$os_networkless" == "true" && exit 0 start() { msg_begin "Starting sshd" diff --git a/board/common/overlay/etc/init.d/S61proftpd b/board/common/overlay/etc/init.d/S61proftpd index ef358941b2..92ad723780 100755 --- a/board/common/overlay/etc/init.d/S61proftpd +++ b/board/common/overlay/etc/init.d/S61proftpd @@ -5,7 +5,7 @@ test -f /etc/proftpd.conf || exit 0 test -n "$os_version" || source /etc/init.d/base test -n "$os_debug" || source /etc/init.d/conf -has_net_conn || exit 0 +test "$os_networkless" == "true" && exit 0 start() { msg_begin "Starting proftpd" diff --git a/board/common/overlay/etc/init.d/S62smb b/board/common/overlay/etc/init.d/S62smb index dfd2ba0324..f7d3ebd102 100755 --- a/board/common/overlay/etc/init.d/S62smb +++ b/board/common/overlay/etc/init.d/S62smb @@ -5,7 +5,7 @@ test -f /etc/samba/smb.conf || exit 0 test -n "$os_version" || source /etc/init.d/base test -n "$os_debug" || source /etc/init.d/conf -has_net_conn || exit 0 +test "$os_networkless" == "true" && exit 0 start() { msg_begin "Setting smb admin password" From a459d1b04f0f400d33e8f37900bb970fdbdaf556 Mon Sep 17 00:00:00 2001 From: Calin Crisan Date: Thu, 9 Feb 2017 22:11:58 +0200 Subject: [PATCH 2/2] default (wifi) country set to GB to enable channels 13 and 14 in 2.4GHz --- board/common/overlay/etc/os.conf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/board/common/overlay/etc/os.conf b/board/common/overlay/etc/os.conf index 71f84de6e6..5a9c3b050b 100644 --- a/board/common/overlay/etc/os.conf +++ b/board/common/overlay/etc/os.conf @@ -5,5 +5,5 @@ os_eth="eth0" os_wlan="wlan0" os_ppp="ppp0" os_networkless="false" -os_country="US" +os_country="GB"