Update atngw100 target skeleton
authorUlf Samuelsson <ulf.samuelsson@atmel.com>
Fri, 17 Aug 2007 13:01:49 +0000 (13:01 -0000)
committerUlf Samuelsson <ulf.samuelsson@atmel.com>
Fri, 17 Aug 2007 13:01:49 +0000 (13:01 -0000)
20 files changed:
target/device/Atmel/atngw100/target_skeleton/etc/hosts
target/device/Atmel/atngw100/target_skeleton/etc/inetd.conf
target/device/Atmel/atngw100/target_skeleton/etc/init.d/K70sendsig
target/device/Atmel/atngw100/target_skeleton/etc/init.d/K80netfs
target/device/Atmel/atngw100/target_skeleton/etc/init.d/K85network
target/device/Atmel/atngw100/target_skeleton/etc/init.d/K90localfs
target/device/Atmel/atngw100/target_skeleton/etc/init.d/S01hotplug
target/device/Atmel/atngw100/target_skeleton/etc/init.d/S02hostname
target/device/Atmel/atngw100/target_skeleton/etc/init.d/S08syslog
target/device/Atmel/atngw100/target_skeleton/etc/init.d/S09klog
target/device/Atmel/atngw100/target_skeleton/etc/init.d/S10modules-init
target/device/Atmel/atngw100/target_skeleton/etc/init.d/S15localfs
target/device/Atmel/atngw100/target_skeleton/etc/init.d/S20network
target/device/Atmel/atngw100/target_skeleton/etc/init.d/S22iptables
target/device/Atmel/atngw100/target_skeleton/etc/init.d/S40telnetd
target/device/Atmel/atngw100/target_skeleton/etc/init.d/S41inetd
target/device/Atmel/atngw100/target_skeleton/etc/init.d/S42httpd
target/device/Atmel/atngw100/target_skeleton/etc/init.d/S43ntp
target/device/Atmel/atngw100/target_skeleton/etc/init.d/S49netfs
target/device/Atmel/atngw100/target_skeleton/etc/passwd

index 05d2eb73acba57943041eaafad217c3c0c05d332..b24a953a300ceb641ddb394864046ba5d0475ebd 100644 (file)
@@ -1,11 +1,12 @@
-127.0.0.1      localhost.localdomain localhost
-127.0.1.1      ngw.example.net ngw
+127.0.0.1   localhost.localdomain localhost
+127.0.1.1   ngw.example.net ngw
 
 # The following lines are desirable for IPv6 capable hosts
-::1 ip6-localhost ip6-loopback
+::1     localhost
+::1     ip6-localhost ip6-loopback
+::1     ngw.example.net ngw
 fe00::0 ip6-localnet
 ff00::0 ip6-mcastprefix
 ff02::1 ip6-allnodes
 ff02::2 ip6-allrouters
 ff02::3 ip6-allhosts
-
index 6d7f6533a2e97cd7ba601609b5a37d19c7231616..02e1b821545ec436c24357b115d0660e5eab9883 100644 (file)
@@ -1,4 +1,3 @@
-ftp            stream  tcp nowait      root.root /usr/sbin/ftpd ftpd -a
 #netbios-ssn   stream  tcp nowait      root.root /usr/sbin/smbd smbd
 #netbios-ns    dgram   udp wait        root.root /usr/sbin/nmbd nmbd
 swat           stream  tcp nowait.400  root.root /usr/sbin/swat swat
index 5b6d3cdc7f24eb454a3a8c89e9eee0caf10e2ecd..d4e8e6139a53efd8172483e04e40b69d7ae51da4 100755 (executable)
@@ -2,10 +2,10 @@
 
 IFDOWN=/sbin/ifdown
 
-echo -n "Stopping networking:"
+echo -n "Stopping networking: "
 if ${IFDOWN} -a; then
-       echo " done"
+       echo "done"
 else
-       echo " failed"
+       echo "failed"
        exit 1
 fi
index 89c49e11778ca2304f4a8c10ee5ca7c02ddadbff..a30f06a09b069c72f11fd506f941596d1d0d5024 100755 (executable)
@@ -1,8 +1,8 @@
 #! /bin/sh
 
-echo -n "Setting up mdev:"
+echo -n "Setting up mdev: "
 set -e
-trap 'echo " failed"' EXIT
+trap 'echo "failed"' EXIT
 /bin/ln -s /proc/self/fd /dev/fd
 /bin/ln -s /proc/self/fd/0 /dev/stdin
 /bin/ln -s /proc/self/fd/1 /dev/stdout
@@ -11,4 +11,4 @@ trap 'echo " failed"' EXIT
 /bin/echo /sbin/mdev > /proc/sys/kernel/hotplug
 /sbin/mdev -s
 trap - EXIT
-echo " done"
+echo "done"
index fcad428afa62a67dc058fa8e903c309bbaf61012..083d41dc400e056a8341951e3c628430227448b7 100755 (executable)
@@ -2,8 +2,8 @@
 
 PROGRAM=/bin/hostname
 
-echo -n "Setting hostname:"
-[ -x ${PROGRAM} ] || (echo " missing"; exit 0)
+echo -n "Setting hostname: "
+[ -x ${PROGRAM} ] || (echo "missing"; exit 0)
 
 if [ -f /etc/hostname ]; then
        HOST="$(cat /etc/hostname)"
@@ -12,10 +12,10 @@ else
 fi
 
 start() {
-       if ${PROGRAM} "${HOST}" > /dev/null 2> /dev/null; then
-               echo " '${HOST}'"
+       if ${PROGRAM} "${HOST}"; then
+               echo "'${HOST}'"
        else
-               echo " failed"
+               echo "failed"
                exit 1
        fi
 }
index 63951e02346530d0e25441602bf58486d3b21631..58b05925db6bab74ac5880d6c4bb7b5322ae0f70 100755 (executable)
@@ -2,23 +2,23 @@
 
 SYSLOGD=/sbin/syslogd
 
-echo -n "Starting syslogd:"
+echo -n "Starting syslogd: "
 if [ ! -x "${SYSLOGD}" ]; then
-       echo " missing"
+       echo "missing"
        exit 1
 fi
 
-if ${SYSLOGD} > /dev/null 2> /dev/null; then
-       echo " done"
+if ${SYSLOGD}; then
+       echo "done"
 else
-       echo " failed"
+       echo "failed"
        exit 1
 fi
 
-echo -n "Log messages to syslog:"
-if echo 4 4 1 7 > /proc/sys/kernel/printk 2> /dev/null; then
-       echo " done"
+echo -n "Log messages to syslog: "
+if echo 4 4 1 7 > /proc/sys/kernel/printk; then
+       echo "done"
 else
-       echo " failed"
+       echo "failed"
        exit 1
 fi
index 4c6763bbd057d635cb260641d60d4ecd53e43fcc..1b0028a084b91cd8df0f23d5823caaa43e5427b3 100755 (executable)
@@ -2,15 +2,15 @@
 
 KLOGD=/sbin/klogd
 
-echo -n "Starting klogd:"
+echo -n "Starting klogd: "
 if [ ! -x "${KLOGD}" ]; then
-       echo " missing"
+       echo "missing"
        exit 1
 fi
 
-if ${KLOGD} > /dev/null 2> /dev/null; then
-       echo " done"
+if ${KLOGD}; then
+       echo "done"
 else
-       echo " failed"
+       echo "failed"
        exit 1
 fi
index d1fcc26e39c8251c414b954656a10a58216c3ca2..e2cf4e3036f67c4f99b45ad79707e0a4e437b5e2 100755 (executable)
@@ -2,9 +2,9 @@
 
 MODPROBE=/sbin/modprobe
 
-echo -n "Probing modules:"
+echo -n "Probing modules: "
 if [ ! -x "${MODPROBE}" -o ! -f "/etc/modules" ]; then
-       echo " missing"
+       echo "missing"
        exit 1
 else
        echo
@@ -13,7 +13,7 @@ fi
 grep '^[^#]' "/etc/modules" | \
 while read module args; do
        [ "$module" ] || continue
-       if ${MODPROBE} $module $args > /dev/null 2> /dev/null; then
+       if ${MODPROBE} $module $args; then
                echo "  $module loaded"
        else
                echo "  $module failed"
index 9672752a00810db1f69525f5296745308a9cd5bd..a0b5a8982440218c9c8e5720404d93af190ac5c0 100755 (executable)
@@ -2,10 +2,10 @@
 
 MOUNT=/bin/mount
 
-echo -n "Mounting local filesystems:"
-if ${MOUNT} -a > /dev/null 2> /dev/null; then
-       echo " done"
+echo -n "Mounting local filesystems: "
+if ${MOUNT} -a; then
+       echo "done"
 else
-       echo " failed"
+       echo "failed"
        exit 1
 fi
index a9787cdfde1d406adec9aeb158095815c39d5460..06cf8cb0002e8c9f9beec3bcefdaab3eb70554db 100755 (executable)
@@ -2,10 +2,10 @@
 
 IFUP=/sbin/ifup
 
-echo -n "Network interfaces:"
-if ${IFUP} -a > /dev/null 2> /dev/null; then
-       echo " done"
+echo -n "Network interfaces: "
+if ${IFUP} -a; then
+       echo "done"
 else
-       echo " failed"
+       echo "failed"
        exit 1
 fi
index dff63c2004b6665a4ae7e6faec2cc675c7d114b7..2ccadde6cdb6c616ad3de6e786a37745bcb8e880 100755 (executable)
@@ -2,7 +2,7 @@
 
 IPTABLES=`which iptables`
 
-echo "Enable NAT: "
+echo "Enable NAT:"
 echo -n "  IPv4 forwarding: "
 if echo 1 > /proc/sys/net/ipv4/ip_forward; then
        echo "done"
@@ -17,7 +17,7 @@ if [ ! -x "${IPTABLES}" ]; then
        exit 1
 fi
 
-if ${IPTABLES} -t nat -A POSTROUTING -o eth0 -j MASQUERADE > /dev/null 2> /dev/null; then
+if ${IPTABLES} -t nat -A POSTROUTING -o eth0 -j MASQUERADE; then
        echo "done"
 else
        echo "failed"
@@ -25,7 +25,7 @@ else
 fi
 
 echo -n "  iptables incoming trafic: "
-if ${IPTABLES} -A FORWARD -i eth0 -o eth1 -m state --state RELATED,ESTABLISHED -j ACCEPT > /dev/null 2> /dev/null; then
+if ${IPTABLES} -A FORWARD -i eth0 -o eth1 -m state --state RELATED,ESTABLISHED -j ACCEPT; then
        echo "done"
 else
        echo "failed"
@@ -33,7 +33,7 @@ else
 fi
 
 echo -n "  iptables outgoung trafic: "
-if ${IPTABLES} -A FORWARD -i eth1 -o eth0 -j ACCEPT > /dev/null 2> /dev/null; then
+if ${IPTABLES} -A FORWARD -i eth1 -o eth0 -j ACCEPT; then
        echo "done"
 else
        echo "failed"
index c44bbb5ae0b1ad0ba319da06fa17106725bf9ae9..b253c10364401a627f4d57cb80d99aec0bf17990 100755 (executable)
@@ -2,15 +2,15 @@
 
 TELNETD=/usr/sbin/telnetd
 
-echo -n "Starting telnetd:"
+echo -n "Starting telnetd: "
 if [ ! -x "${TELNETD}" ]; then
-       echo " missing"
+       echo "missing"
        exit 1
 fi
 
-if ${TELNETD} -l /bin/ash > /dev/null 2> /dev/null; then
-       echo " done"
+if ${TELNETD} -l /bin/ash; then
+       echo "done"
 else
-       echo " failed"
+       echo "failed"
        exit 1
 fi
index cf85c13f11bfcedf4643e445ad7b46790a095ced..2d24974a5cd96bc7c8341e9752882be4a7056757 100755 (executable)
@@ -2,15 +2,15 @@
 
 INETD=/usr/sbin/inetd
 
-echo -n "Starting inted:"
+echo -n "Starting inted: "
 if [ ! -x "${INETD}" ]; then
-       echo " missing"
+       echo "missing"
        exit 1
 fi
 
-if ${INETD} > /dev/null 2> /dev/null; then
-       echo " done"
+if ${INETD}; then
+       echo "done"
 else
-       echo " failed"
+       echo "failed"
        exit 1
 fi
index 202e9d2eb3741dc1bb8688b0843b74b1d8266c2e..f8e7813e65e3894e107123ef031b73df2d5b7945 100755 (executable)
@@ -2,15 +2,15 @@
 
 HTTPD=/usr/sbin/httpd
 
-echo -n "Starting httpd:"
+echo -n "Starting httpd: "
 if [ ! -x "${HTTPD}" ]; then
-       echo " missing"
+       echo "missing"
        exit 1
 fi
 
-if ${HTTPD} -h /www > /dev/null 2> /dev/null; then
-       echo " done"
+if ${HTTPD} -h /www; then
+       echo "done"
 else
-       echo " failed"
+       echo "failed"
        exit 1
 fi
index f996ab09ff39c0f609abcc5a7d50468a256676f8..69fa4c8940f2ec5a489e23d80e081b7517b37ca1 100755 (executable)
@@ -5,22 +5,22 @@ NTPDATE=/usr/bin/ntpdate
 if [ -f /etc/default/ntpdate ]; then
     . /etc/default/ntpdate
 else
-       echo " missing /etc/default/ntpdate"
+       echo "WARNING: missing /etc/default/ntpdate"
        exit 1
 fi
 
-echo -n "Starting ntpdate:"
+echo -n "Starting ntpdate: "
 if [ ! -x ${NTPDATE} ]; then
-       echo " missing"
+       echo "missing"
        echo -n "  WARNING: could not syncronize clock, "
        echo "edit NTPSERVERS in /etc/default/ntpdate."
        exit 1
 fi
 
-if ${NTPDATE} $NTPOPTIONS $NTPSERVERS > /dev/null 2> /dev/null; then
-       echo " done"
+if ${NTPDATE} $NTPOPTIONS $NTPSERVERS; then
+       echo "done"
 else
-       echo " failed"
+       echo "failed"
        echo -n "  WARNING: could not syncronize clock, "
        echo "edit NTPSERVERS in /etc/default/ntpdate."
        exit 1
index 99782b481cd8ff52eb523f6713a7d76097ce0e47..e1e0fbf4f183b9d86c78942f974d4b93e7faee81 100755 (executable)
@@ -2,10 +2,10 @@
 
 MOUNT=/bin/mount
 
-echo -n "Mounting remote filesystems:"
-if ${MOUNT} -t nfs -a > /dev/null 2> /dev/null; then
-       echo " done"
+echo -n "Mounting remote filesystems: "
+if ${MOUNT} -t nfs -a; then
+       echo "done"
 else
-       echo " failed"
+       echo "failed"
        exit 1
 fi
index 831c3043b732af6b21d29f00082c6b2027e74734..705c89eece406217da96cf6eea715b01c0795925 100644 (file)
@@ -1,4 +1,4 @@
-root:$1$rsjkLsTU$zdulfnYQgyKmN3e0Fiw7C1:0:0:root:/:/bin/ash
+root:$1$rsjkLsTU$zdulfnYQgyKmN3e0Fiw7C1:0:0:root:/:/bin/sh
 daemon:x:1:1:daemon:/usr/sbin:/bin/sh
 bin:x:2:2:bin:/bin:/bin/sh
 sys:x:3:3:sys:/dev:/bin/sh