Reinhard Russinger hace 3 meses
padre
commit
f5c5d65228

+ 1 - 1
board/GfA/Display001/BUILD

@@ -1 +1 @@
-706_rc3
+706_rc4

+ 4 - 0
board/GfA/Display001/rootfs/etc/network/interfaces

@@ -3,6 +3,8 @@ auto lo
 iface lo inet loopback
 #---
 #iface eth0 inet dhcp
+#	hostname $(hostname)
+
 iface eth0 inet static
 	address 192.168.0.125
 	netmask 255.255.255.0
@@ -10,6 +12,8 @@ iface eth0 inet static
 	dns-nameservers 192.168.0.10
 
 iface eth1 inet dhcp
+	hostname $(hostname)
+
 #---
 iface usb0 inet static
 	address 192.168.7.2

+ 143 - 0
patches/0124-remove-interfaces-from-update.patch

@@ -0,0 +1,143 @@
+diff --git a/UpdateRootfs.sh.in b/UpdateRootfs.sh.in
+index 00abca8..a826bc2 100644
+--- a/UpdateRootfs.sh.in
++++ b/UpdateRootfs.sh.in
+@@ -1,7 +1,7 @@
+ #!/bin/sh
+ 
+ TMP_PATH="$GFA_PREFIX/__GfA_Update"
+-TAR_PARAMETERS="-C $GFA_PREFIX/ --exclude=./tmp --exclude=./etc/inittab --exclude=./etc/hosts --exclude=./etc/hostname --exclude=./etc/passwd --exclude=./etc/shadow --exclude=./etc/vncpwd --exclude=./etc/init.d/S99tincd --exclude=./etc/hostapd.conf --exclude=./root/.ssh --exclude=./etc/init.d/M99tincd --exclude=./var/GfA/Display_GSM.ini --exclude=./var/cron/crontabs/root -xzvf -"
++TAR_PARAMETERS="-C $GFA_PREFIX/ --exclude=./tmp --exclude=./etc/network/interfaces --exclude=./etc/inittab --exclude=./etc/hosts --exclude=./etc/hostname --exclude=./etc/passwd --exclude=./etc/shadow --exclude=./etc/vncpwd --exclude=./etc/init.d/S99tincd --exclude=./etc/hostapd.conf --exclude=./root/.ssh --exclude=./etc/init.d/M99tincd --exclude=./var/GfA/Display_GSM.ini --exclude=./var/cron/crontabs/root -xzvf -"
+ 
+ untar_payload ()
+ {
+@@ -163,12 +163,6 @@ mount $bootpart $GFA_PREFIX/_GfABoot
+ 
+ mkdir -p $TMP_PATH/bu_cfg
+ 
+-if [ -e $GFA_PREFIX/etc/network/interfaces ]
+-then
+-        cp $GFA_PREFIX/etc/network/interfaces $TMP_PATH/bu_cfg
+-        rm $GFA_PREFIX/etc/network/interfaces
+-fi
+-
+ if [ -e $GFA_PREFIX/etc/wpa_supplicant.conf ]
+ then
+         cp $GFA_PREFIX/etc/wpa_supplicant.conf $TMP_PATH/bu_cfg/wpa_supplicant.conf_old
+@@ -188,50 +182,6 @@ untar_payload
+ echo "sync mmc be patient ...."
+ sync
+ sync
+-# --- copy old eth0 configuration
+-INTERFACE="eth0"
+-IFCONFIG=$TMP_PATH/bu_cfg/interfaces
+-
+-(\
+-cat << EOF
+-# Configure Loopback
+-auto lo
+-iface lo inet loopback
+-
+-EOF
+-) > $GFA_PREFIX/etc/network/interfaces
+-
+-awk -v par=$INTERFACE '/^iface/ && $2==par {f=1}/^iface/ && $2!=par {f=0}f && !/^\s*#/d && !/^\s*$/d  {print $0 }' $TMP_PATH/bu_cfg/interfaces \
+->> $GFA_PREFIX/etc/network/interfaces
+-
+-(\
+-cat << EOF
+-iface eth1 inet dhcp
+-#---
+-iface usb0 inet static
+-        address 192.168.7.2
+-        netmask 255.255.255.252
+-#---
+-iface wlan0 inet dhcp
+-        wpa-conf /etc/wpa_supplicant/wpa_supplicant.conf
+-#
+-EOF
+-) >> $GFA_PREFIX/etc/network/interfaces
+-
+-FIXINTERFACES=$(
+-cat $GFA_PREFIX/etc/network/interfaces |
+-awk '
+-{
+-# remove old version of resolv.conf filling
+-if( ($1 == "post-up") && ($2 == "echo") && ($3 == "\"nameserver")) {
+-    printf("\tdns-nameservers %s\n", substr($4,1,length($4) - 1));
+-        } else {
+-        printf("%s\n", $0);
+-    }
+-
+-}'
+-)
+-echo  "$FIXINTERFACES" > $GFA_PREFIX/etc/network/interfaces
+ 
+ if [ -e $GFA_PREFIX/etc/init.d/S98usb_g_ether ]
+ then
+@@ -714,12 +664,6 @@ rm -rf \$TMP_PATH
+ mkdir -p \$TMP_PATH
+ mkdir -p \$TMP_PATH/bu_cfg
+ 
+-if [ -e \$GFA_PREFIX/etc/network/interfaces ]
+-then
+-        cp \$GFA_PREFIX/etc/network/interfaces \$TMP_PATH/bu_cfg
+-        rm \$GFA_PREFIX/etc/network/interfaces
+-fi
+-
+ if [ -e \$GFA_PREFIX/etc/wpa_supplicant.conf ]
+ then
+         cp \$GFA_PREFIX/etc/wpa_supplicant.conf \$TMP_PATH/bu_cfg/wpa_supplicant.conf_old
+@@ -752,52 +696,6 @@ rsync -avR --exclude=/_GfABoot \\
+ --exclude=./var/cron/crontabs/root \\
+  ./ \$EMMC_ROOTPATH/
+ 
+-# --- copy old eth0 configuration
+-INTERFACE="eth0"
+-IFCONFIG=\$TMP_PATH/bu_cfg/interfaces
+-  
+-(\\
+-cat << EOF
+-# Configure Loopback
+-auto lo
+-iface lo inet loopback
+-   
+-EOF
+-) > \$GFA_PREFIX/etc/network/interfaces
+-
+-
+-awk -v par=\$INTERFACE '/^iface/ && \$2==par {f=1}/^iface/ && \$2!=par {f=0}f && !/^\s*#/d && !/^\s*\$/d  {print \$0 }' \$TMP_PATH/bu_cfg/interfaces \\
+->> \$GFA_PREFIX/etc/network/interfaces
+-  
+-(\\
+-cat << EOF
+-iface eth1 inet dhcp
+-#---
+-iface usb0 inet static
+-        address 192.168.7.2
+-        netmask 255.255.255.252
+-#---
+-iface wlan0 inet dhcp
+-        wpa-conf /etc/wpa_supplicant/wpa_supplicant.conf
+-#  
+-EOF
+-) >> \$GFA_PREFIX/etc/network/interfaces
+-
+-FIXINTERFACES=\$(
+-cat \$GFA_PREFIX/etc/network/interfaces |
+-awk '
+-{
+-# remove old version of resolv.conf filling
+-if( (\$1 == "post-up") && (\$2 == "echo") && (\$3 == "\"nameserver")) {
+-    printf("\tdns-nameservers %s\n", substr(\$4,1,length(\$4) - 1));
+-        } else {
+-        printf("%s\n", \$0);
+-    }
+-
+-}'
+-)
+-echo  "\$FIXINTERFACES" > \$GFA_PREFIX/etc/network/interfaces
+-
+ if [ -e \$GFA_PREFIX/etc/init.d/S98usb_g_ether ]
+ then
+         cp \$GFA_PREFIX/etc/init.d/S98usb_g_ether \$GFA_PREFIX/etc/init.d/M98usb_g_ether