diff options
author | Ulf Samuelsson <ulf.samuelsson@atmel.com> | 2007-08-17 13:01:49 +0000 |
---|---|---|
committer | Ulf Samuelsson <ulf.samuelsson@atmel.com> | 2007-08-17 13:01:49 +0000 |
commit | 24c980292843b7b9aebc9f1831c6c1e8ba49c148 (patch) | |
tree | 81e0800053aaa9c793d47c72d2ea8aaeaaf06546 /target/device/Atmel/atngw100/target_skeleton/etc/init.d/S02hostname | |
parent | 55e2d9bdb5017342166af67b7289956113ffc4ea (diff) | |
download | buildroot-novena-24c980292843b7b9aebc9f1831c6c1e8ba49c148.tar.gz buildroot-novena-24c980292843b7b9aebc9f1831c6c1e8ba49c148.zip |
Update atngw100 target skeleton
Diffstat (limited to 'target/device/Atmel/atngw100/target_skeleton/etc/init.d/S02hostname')
-rwxr-xr-x | target/device/Atmel/atngw100/target_skeleton/etc/init.d/S02hostname | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/target/device/Atmel/atngw100/target_skeleton/etc/init.d/S02hostname b/target/device/Atmel/atngw100/target_skeleton/etc/init.d/S02hostname index fcad428af..083d41dc4 100755 --- a/target/device/Atmel/atngw100/target_skeleton/etc/init.d/S02hostname +++ b/target/device/Atmel/atngw100/target_skeleton/etc/init.d/S02hostname @@ -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 } |