From 90965566891ee63baaae6be66e55a12c28ab1b65 Mon Sep 17 00:00:00 2001 From: Thomas Petazzoni Date: Sun, 5 Dec 2010 21:53:01 +0100 Subject: board: simplify atngw100 support Minimize atngw100_defconfig, remove atngw100-base_defconfig, and remove the target skeleton and device table. Instead of having complete copies of new target skeletons (making them hard to maintain), we should just have a post-build script that adds/removes/tweaks the existing target skeleton. Moreover, most of the tweaks in this target skeleton were for specific packages, but the policy now is that board defconfig should just build a basic root filesystem with Busybox, and let the user select whichever set of packages (s)he wants. Signed-off-by: Thomas Petazzoni Signed-off-by: Peter Korsgaard --- .../target_skeleton/etc/init.d/S22iptables | 43 ---------------------- 1 file changed, 43 deletions(-) delete mode 100755 target/device/Atmel/atngw100/target_skeleton/etc/init.d/S22iptables (limited to 'target/device/Atmel/atngw100/target_skeleton/etc/init.d/S22iptables') diff --git a/target/device/Atmel/atngw100/target_skeleton/etc/init.d/S22iptables b/target/device/Atmel/atngw100/target_skeleton/etc/init.d/S22iptables deleted file mode 100755 index 2ccadde6c..000000000 --- a/target/device/Atmel/atngw100/target_skeleton/etc/init.d/S22iptables +++ /dev/null @@ -1,43 +0,0 @@ -#!/bin/sh - -IPTABLES=`which iptables` - -echo "Enable NAT:" -echo -n " IPv4 forwarding: " -if echo 1 > /proc/sys/net/ipv4/ip_forward; then - echo "done" -else - echo "failed" - return 1 -fi - -echo -n " iptables postrouting: " -if [ ! -x "${IPTABLES}" ]; then - echo "missing" - exit 1 -fi - -if ${IPTABLES} -t nat -A POSTROUTING -o eth0 -j MASQUERADE; then - echo "done" -else - echo "failed" - exit 1 -fi - -echo -n " iptables incoming trafic: " -if ${IPTABLES} -A FORWARD -i eth0 -o eth1 -m state --state RELATED,ESTABLISHED -j ACCEPT; then - echo "done" -else - echo "failed" - exit 1 -fi - -echo -n " iptables outgoung trafic: " -if ${IPTABLES} -A FORWARD -i eth1 -o eth0 -j ACCEPT; then - echo "done" -else - echo "failed" - exit 1 -fi - -exit 0 -- cgit v1.2.3