connman: remove support to create initial setting

Signed-off-by: Stephan Raue <stephan@openelec.tv>
This commit is contained in:
Stephan Raue 2014-08-24 02:53:13 +02:00
parent 10972f677e
commit 9fda0a0a35
3 changed files with 1 additions and 27 deletions

View File

@ -1,18 +0,0 @@
[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

View File

@ -100,6 +100,7 @@ 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" \
@ -107,9 +108,6 @@ 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() {

View File

@ -17,12 +17,6 @@
# 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"