Sync the configuration to the new format.

This commit is contained in:
2017-04-19 21:58:58 +02:00
parent 1ace436875
commit b455ecc70d
8 changed files with 150 additions and 7261 deletions

View File

@@ -5,20 +5,9 @@ START=11
boot() {
# Set our device Hostname using the friendlyName
friendlyname=`cat /usr/local/configs/mediaCTRLRenderer.ini | grep friendlyname | cut -f2 -d'='`
friendlyname='Domo'
mac=`fw_printenv ethaddr | cut -f4-6 -d':' | sed s/://g`
echo $friendlyname-$mac > /etc/hostname
hostname -F /etc/hostname
echo Device hostname is `hostname`
# Set DLNA friendly name.
ConfigState=`fw_printenv is_configured | cut -d'=' -f2`
if [ "$ConfigState" = "0" ]; then
echo "Reset the Device Name to Factory."
mkdir -p /mnt/user/UserSettings/
rm /mnt/user/UserSettings/*
/usr/local/bin/devicename mediaCTRLRenderer.ini mediaCTRLServer.ini SlavePlayer.ini
mkdir -p /mnt/user/uci/
rm /mnt/user/uci/*
fw_setenv is_configured 1
fi
}

View File

@@ -9,7 +9,7 @@ BR_ENV += BR2_DEFCONFIG=$(BR_PROJECT)/configs/buildroot_defconfig BR2_DEFCONFIG_
buildroot.menuconfig: buildroot.config
$(MAKE) $(BR_ENV) -C $(BR_PROJECT)/../../bsp/buildroot/ menuconfig
@echo "Saving defconfig (Waiting) ...."
$(MAKE) $(BR_ENV) -C $(BR_PROJECT)/../../../tools/buildroot/ savedefconfig
$(MAKE) $(BR_ENV) -C $(BR_PROJECT)/../../bsp/buildroot/ savedefconfig
@echo "Saving defconfig done."
buildroot: buildroot.config
@@ -24,7 +24,7 @@ buildroot.config:
@mkdir -p $(BR_STAGING)/buildroot/
ifeq ("$(wildcard $(BR_STAGING)/buildroot/.config)","")
@cp $(BR_PROJECT)/configs/buildroot_defconfig $(BR_STAGING)/buildroot/.config
$(MAKE) $(BR_ENV) -C $(BR_PROJECT)/../../../tools/buildroot/ defconfig
$(MAKE) $(BR_ENV) -C $(BR_PROJECT)/../../bsp/buildroot/ defconfig
endif
install.sd: