mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-29 05:36:47 +00:00
Revert "connman: remove support to create initial setting"
This reverts commit debb37a12fb1f06c907de1a83fa8301bd42fc493. debb37a broke wifi in wizard / first run. as it doesnt seem to be intentional, reverting.
This commit is contained in:
parent
71febe4aad
commit
d6e8b3195b
18
packages/network/connman/config/settings
Normal file
18
packages/network/connman/config/settings
Normal file
@ -0,0 +1,18 @@
|
||||
[global]
|
||||
OfflineMode=false
|
||||
Timeservers=0.pool.ntp.org;1.pool.ntp.org;2.pool.ntp.org;3.pool.ntp.org
|
||||
|
||||
[Wired]
|
||||
Enable=true
|
||||
|
||||
[WiFi]
|
||||
Enable=true
|
||||
|
||||
[Bluetooth]
|
||||
Enable=false
|
||||
|
||||
[3G]
|
||||
Enable=false
|
||||
|
||||
[WiMAX]
|
||||
Enable=false
|
@ -88,7 +88,6 @@ post_makeinstall_target() {
|
||||
sed -i $INSTALL/etc/connman/main.conf \
|
||||
-e "s|^# BackgroundScanning.*|BackgroundScanning = true|g" \
|
||||
-e "s|^# FallbackNameservers.*|FallbackNameservers = 8.8.8.8,8.8.4.4|g" \
|
||||
-e "s|^# FallbackTimeservers.*|FallbackTimeservers = 0.pool.ntp.org,1.pool.ntp.org,2.pool.ntp.org,3.pool.ntp.org|g" \
|
||||
-e "s|^# PreferredTechnologies.*|PreferredTechnologies = ethernet,wifi,cellular|g" \
|
||||
-e "s|^# TetheringTechnologies.*|TetheringTechnologies = wifi|g" \
|
||||
-e "s|^# AllowHostnameUpdates.*|AllowHostnameUpdates = false|g" \
|
||||
@ -96,6 +95,9 @@ post_makeinstall_target() {
|
||||
|
||||
mkdir -p $INSTALL/usr/config
|
||||
cp $PKG_DIR/config/hosts.conf $INSTALL/usr/config
|
||||
|
||||
mkdir -p $INSTALL/usr/share/connman/
|
||||
cp $PKG_DIR/config/settings $INSTALL/usr/share/connman/
|
||||
}
|
||||
|
||||
post_install() {
|
||||
|
@ -17,6 +17,12 @@
|
||||
# along with OpenELEC. If not, see <http://www.gnu.org/licenses/>.
|
||||
################################################################################
|
||||
|
||||
# creating initial settings file
|
||||
if [ ! -f /storage/.cache/connman/settings ]; then
|
||||
mkdir -p /storage/.cache/connman
|
||||
cp /usr/share/connman/settings /storage/.cache/connman
|
||||
fi
|
||||
|
||||
# set variable for connman main.conf location
|
||||
if [ -f /storage/.config/connman_main.conf ]; then
|
||||
export CONNMAN_MAIN="--config=/storage/.config/connman_main.conf"
|
||||
|
Loading…
x
Reference in New Issue
Block a user