author | zecke <zecke> | 2004-10-10 16:23:46 (UTC) |
---|---|---|
committer | zecke <zecke> | 2004-10-10 16:23:46 (UTC) |
commit | 96e6046ac26725836d38832a6e3a491351deeb53 (patch) (side-by-side diff) | |
tree | e3c84c1757403426faafbadfb7130c0d480a9ba2 | |
parent | 44f716e0f0aaf35869558a805e0fa7791996897a (diff) | |
download | opie-96e6046ac26725836d38832a6e3a491351deeb53.zip opie-96e6046ac26725836d38832a6e3a491351deeb53.tar.gz opie-96e6046ac26725836d38832a6e3a491351deeb53.tar.bz2 |
-Stop bashism
-Do not use /usr/bin/env but the full qualified path to the executable
-rw-r--r-- | share/opie-console/sl6000_embedix_kill_0_1.sh | 14 | ||||
-rw-r--r-- | share/opie-console/sl6000_embedix_restart_0_1.sh | 14 |
2 files changed, 14 insertions, 14 deletions
diff --git a/share/opie-console/sl6000_embedix_kill_0_1.sh b/share/opie-console/sl6000_embedix_kill_0_1.sh index 369c23e..434d7fb 100644 --- a/share/opie-console/sl6000_embedix_kill_0_1.sh +++ b/share/opie-console/sl6000_embedix_kill_0_1.sh @@ -1,7 +1,7 @@ -#!/bin/bash +#!/bin/sh # Use egrep to fid out if we need to comment /etc/sync/serialctl # from the inittab -/usr/bin/env egrep -q '^pd:[0-9]:respawn:/etc/sync/serialctl' /etc/inittab 2>/dev/null +/bin/egrep -q '^pd:[0-9]:respawn:/etc/sync/serialctl' /etc/inittab 2>/dev/null # If egrep did not find an enabled /etc/sync/serialctl in /etc/inittab, @@ -12,8 +12,8 @@ fi # This "cp -af" is to get the perms correct on /etc/inittab.tmp -/usr/bin/env cp -af /etc/inittab /etc/inittab.tmp +/bin/cp -af /etc/inittab /etc/inittab.tmp # This sed comments out the "etc/sync/serialctl" line -/usr/bin/env sed 's%^\(pd:[0-9]:respawn:/etc/sync/serialctl\)%#\1%' /etc/inittab > /etc/inittab.tmp +/bin/sed 's%^\(pd:[0-9]:respawn:/etc/sync/serialctl\)%#\1%' /etc/inittab > /etc/inittab.tmp # We have not yet modified /etc/inittab, so to stay on the safe side @@ -21,9 +21,9 @@ fi if [ $? -eq 0 ]; then # This "cp -af" puts the new /etc/inittab into place - /usr/bin/env cp -af /etc/inittab.tmp /etc/inittab + /bin/cp -af /etc/inittab.tmp /etc/inittab # Unlink the tmp file - rm /etc/inittab.tmp + /bin/rm /etc/inittab.tmp # HUP init - /usr/bin/env kill -HUP 1 + /bin/kill -HUP 1 fi diff --git a/share/opie-console/sl6000_embedix_restart_0_1.sh b/share/opie-console/sl6000_embedix_restart_0_1.sh index 4ce0e7e..a0a79b5 100644 --- a/share/opie-console/sl6000_embedix_restart_0_1.sh +++ b/share/opie-console/sl6000_embedix_restart_0_1.sh @@ -1,7 +1,7 @@ -#!/bin/bash +#!/bin/sh # Use egrep to fid out if we need to comment /etc/sync/serialctl # from the inittab -/usr/bin/env egrep -q '^#pd:[0-9]:respawn:/etc/sync/serialctl' /etc/inittab 2>/dev/null +/bin/egrep -q '^#pd:[0-9]:respawn:/etc/sync/serialctl' /etc/inittab 2>/dev/null # If egrep did not find an enabled /etc/sync/serialctl in /etc/inittab, @@ -12,8 +12,8 @@ fi # This "cp -af" is to get the perms correct on /etc/inittab.tmp -/usr/bin/env cp -af /etc/inittab /etc/inittab.tmp +/bin/cp -af /etc/inittab /etc/inittab.tmp # This sed comments out the "etc/sync/serialctl" line -/usr/bin/env sed 's%^#\(pd:[0-9]:respawn:/etc/sync/serialctl\)%\1%' /etc/inittab > /etc/inittab.tmp +/bin/sed 's%^#\(pd:[0-9]:respawn:/etc/sync/serialctl\)%\1%' /etc/inittab > /etc/inittab.tmp # We have not yet modified /etc/inittab, so to stay on the safe side @@ -21,9 +21,9 @@ fi if [ $? -eq 0 ]; then # This "cp -af" puts the new /etc/inittab into place - /usr/bin/env cp -af /etc/inittab.tmp /etc/inittab + /bin/cp -af /etc/inittab.tmp /etc/inittab # Unlink the tmp file - rm /etc/inittab.tmp + /bin/rm /etc/inittab.tmp # HUP init - /usr/bin/env kill -HUP 1 + /bin/kill -HUP 1 fi |