From fd124a0cff6170c8474166a33b0591d490a32bdb Mon Sep 17 00:00:00 2001 From: Waldemar Brodkorb Date: Sat, 24 Oct 2015 15:53:10 +0200 Subject: add new symbol for systems with tcp/ip but without netdevice. like arc simulator running test-suites with network functions --- package/base-files/Makefile | 7 +++- package/base-files/files/interfaces-dhcp | 58 +++++++++++++++++++++++++++ package/base-files/src/etc/network/interfaces | 58 --------------------------- 3 files changed, 64 insertions(+), 59 deletions(-) create mode 100644 package/base-files/files/interfaces-dhcp delete mode 100644 package/base-files/src/etc/network/interfaces (limited to 'package/base-files') diff --git a/package/base-files/Makefile b/package/base-files/Makefile index 7642c5e09..1c7f2bfdf 100644 --- a/package/base-files/Makefile +++ b/package/base-files/Makefile @@ -6,7 +6,7 @@ include $(ADK_TOPDIR)/mk/rootfs.mk PKG_NAME:= base-files PKG_VERSION:= 1.1 -PKG_RELEASE:= 15 +PKG_RELEASE:= 16 PKG_SECTION:= base/apps PKG_DESCR:= basic files and scripts @@ -68,6 +68,11 @@ endif mkdir -p $(IDIR_BASE_FILES)/etc/network/{if-pre-up.d,if-up.d,if-down.d,if-post-down.d} mkdir -p $(IDIR_BASE_FILES)/usr/{lib,bin} chmod 600 $(IDIR_BASE_FILES)/etc/shadow +ifeq ($(ADK_TARGET_WITH_NETDEVICE),y) + cp ./files/interfaces-dhcp $(IDIR_BASE_FILES)/etc/network/interfaces +else + cp ./files/interfaces-lo $(IDIR_BASE_FILES)/etc/network/interfaces +endif chmod 600 $(IDIR_BASE_FILES)/etc/network/interfaces ifeq (${ADK_TARGET_ROOTFS_NFSROOT},y) (cd $(IDIR_BASE_FILES)/etc; ln -sf ../proc/net/pnp resolv.conf) diff --git a/package/base-files/files/interfaces-dhcp b/package/base-files/files/interfaces-dhcp new file mode 100644 index 000000000..11174c152 --- /dev/null +++ b/package/base-files/files/interfaces-dhcp @@ -0,0 +1,58 @@ +auto lo +iface lo inet loopback + +auto eth0 +iface eth0 inet dhcp + +## static network configuration +#auto eth0 +#iface eth0 inet static +# address 192.168.1.1 +# netmask 255.255.255.0 +# broadcast + +# gateway 192.168.1.254 +## + +## bridge configuration +#auto br0 +#iface br0 inet static +# address 192.168.99.1 +# netmask 255.255.255.0 +# broadcast + +# bridge-ports eth0 eth1 +## + +## pppoe configuration +#auto ppp0 +#iface ppp0 inet ppp +# use-template pppoe +# provider isp +# ppp-mtu 1412 +# ppp-username foo +# ppp-password bar +# ppp-device eth1 +## + +## wireless client configuration +#auto wlan0 +#iface wlan0 inet dhcp +# wireless-ssid myap +# wireless-mode sta +# wireless-security wpa2 +# wireless-passphrase xxxxxx +## + +## wireless accesspoint configuration +#auto wlan0 +#iface wlan0 inet static +# address 192.168.40.10 +# netmask 255.255.255.0 +# broadcast + +# wireless-ssid myap +# wireless-mode ap +# wireless-channel 8 +# wireless-security wpa2 +# wireless-passphrase xxxxxxxx +## + +# for more special cases see: http://www.openadk.org/doku.php?id=network diff --git a/package/base-files/src/etc/network/interfaces b/package/base-files/src/etc/network/interfaces deleted file mode 100644 index 11174c152..000000000 --- a/package/base-files/src/etc/network/interfaces +++ /dev/null @@ -1,58 +0,0 @@ -auto lo -iface lo inet loopback - -auto eth0 -iface eth0 inet dhcp - -## static network configuration -#auto eth0 -#iface eth0 inet static -# address 192.168.1.1 -# netmask 255.255.255.0 -# broadcast + -# gateway 192.168.1.254 -## - -## bridge configuration -#auto br0 -#iface br0 inet static -# address 192.168.99.1 -# netmask 255.255.255.0 -# broadcast + -# bridge-ports eth0 eth1 -## - -## pppoe configuration -#auto ppp0 -#iface ppp0 inet ppp -# use-template pppoe -# provider isp -# ppp-mtu 1412 -# ppp-username foo -# ppp-password bar -# ppp-device eth1 -## - -## wireless client configuration -#auto wlan0 -#iface wlan0 inet dhcp -# wireless-ssid myap -# wireless-mode sta -# wireless-security wpa2 -# wireless-passphrase xxxxxx -## - -## wireless accesspoint configuration -#auto wlan0 -#iface wlan0 inet static -# address 192.168.40.10 -# netmask 255.255.255.0 -# broadcast + -# wireless-ssid myap -# wireless-mode ap -# wireless-channel 8 -# wireless-security wpa2 -# wireless-passphrase xxxxxxxx -## - -# for more special cases see: http://www.openadk.org/doku.php?id=network -- cgit v1.2.3