diff options
author | Thomas Petazzoni <thomas.petazzoni@free-electrons.com> | 2010-12-05 21:53:01 +0100 |
---|---|---|
committer | Peter Korsgaard <jacmet@sunsite.dk> | 2010-12-16 14:54:57 +0100 |
commit | 90965566891ee63baaae6be66e55a12c28ab1b65 (patch) | |
tree | 7405afb58ca0a4744cb7e4eaaf3b5af623e4ae2b /target/device/Atmel/atngw100-base/target_skeleton/etc/init.d/S02hostname | |
parent | 729b0fa2cae5ccb18c58d77a204180d2fad6db73 (diff) |
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 <thomas.petazzoni@free-electrons.com>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
Diffstat (limited to 'target/device/Atmel/atngw100-base/target_skeleton/etc/init.d/S02hostname')
-rwxr-xr-x | target/device/Atmel/atngw100-base/target_skeleton/etc/init.d/S02hostname | 47 |
1 files changed, 0 insertions, 47 deletions
diff --git a/target/device/Atmel/atngw100-base/target_skeleton/etc/init.d/S02hostname b/target/device/Atmel/atngw100-base/target_skeleton/etc/init.d/S02hostname deleted file mode 100755 index 083d41dc4..000000000 --- a/target/device/Atmel/atngw100-base/target_skeleton/etc/init.d/S02hostname +++ /dev/null @@ -1,47 +0,0 @@ -#!/bin/sh - -PROGRAM=/bin/hostname - -echo -n "Setting hostname: " -[ -x ${PROGRAM} ] || (echo "missing"; exit 0) - -if [ -f /etc/hostname ]; then - HOST="$(cat /etc/hostname)" -else - HOST="localhost.localdomain" -fi - -start() { - if ${PROGRAM} "${HOST}"; then - echo "'${HOST}'" - else - echo "failed" - exit 1 - fi -} - -stop() { - return 0 -} - -restart() { - stop - start -} - -case "$1" in - start) - start - ;; - stop) - stop - ;; - restart|reload) - restart - ;; - *) - echo $"Usage: $0 {start|stop|restart}" - exit 1 -esac - -exit $? |