author | zecke <zecke> | 2004-10-10 16:23:46 (UTC) |
---|---|---|
committer | zecke <zecke> | 2004-10-10 16:23:46 (UTC) |
commit | 96e6046ac26725836d38832a6e3a491351deeb53 (patch) (unidiff) | |
tree | e3c84c1757403426faafbadfb7130c0d480a9ba2 /share | |
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,2 +1,2 @@ | |||
1 | #!/bin/bash | 1 | #!/bin/sh |
2 | 2 | ||
@@ -4,3 +4,3 @@ | |||
4 | # from the inittab | 4 | # from the inittab |
5 | /usr/bin/env egrep -q '^pd:[0-9]:respawn:/etc/sync/serialctl' /etc/inittab 2>/dev/null | 5 | /bin/egrep -q '^pd:[0-9]:respawn:/etc/sync/serialctl' /etc/inittab 2>/dev/null |
6 | 6 | ||
@@ -13,6 +13,6 @@ fi | |||
13 | # This "cp -af" is to get the perms correct on /etc/inittab.tmp | 13 | # This "cp -af" is to get the perms correct on /etc/inittab.tmp |
14 | /usr/bin/env cp -af /etc/inittab /etc/inittab.tmp | 14 | /bin/cp -af /etc/inittab /etc/inittab.tmp |
15 | 15 | ||
16 | # This sed comments out the "etc/sync/serialctl" line | 16 | # This sed comments out the "etc/sync/serialctl" line |
17 | /usr/bin/env sed 's%^\(pd:[0-9]:respawn:/etc/sync/serialctl\)%#\1%' /etc/inittab > /etc/inittab.tmp | 17 | /bin/sed 's%^\(pd:[0-9]:respawn:/etc/sync/serialctl\)%#\1%' /etc/inittab > /etc/inittab.tmp |
18 | 18 | ||
@@ -22,7 +22,7 @@ if [ $? -eq 0 ]; then | |||
22 | # This "cp -af" puts the new /etc/inittab into place | 22 | # This "cp -af" puts the new /etc/inittab into place |
23 | /usr/bin/env cp -af /etc/inittab.tmp /etc/inittab | 23 | /bin/cp -af /etc/inittab.tmp /etc/inittab |
24 | # Unlink the tmp file | 24 | # Unlink the tmp file |
25 | rm /etc/inittab.tmp | 25 | /bin/rm /etc/inittab.tmp |
26 | # HUP init | 26 | # HUP init |
27 | /usr/bin/env kill -HUP 1 | 27 | /bin/kill -HUP 1 |
28 | fi | 28 | 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,2 +1,2 @@ | |||
1 | #!/bin/bash | 1 | #!/bin/sh |
2 | 2 | ||
@@ -4,3 +4,3 @@ | |||
4 | # from the inittab | 4 | # from the inittab |
5 | /usr/bin/env egrep -q '^#pd:[0-9]:respawn:/etc/sync/serialctl' /etc/inittab 2>/dev/null | 5 | /bin/egrep -q '^#pd:[0-9]:respawn:/etc/sync/serialctl' /etc/inittab 2>/dev/null |
6 | 6 | ||
@@ -13,6 +13,6 @@ fi | |||
13 | # This "cp -af" is to get the perms correct on /etc/inittab.tmp | 13 | # This "cp -af" is to get the perms correct on /etc/inittab.tmp |
14 | /usr/bin/env cp -af /etc/inittab /etc/inittab.tmp | 14 | /bin/cp -af /etc/inittab /etc/inittab.tmp |
15 | 15 | ||
16 | # This sed comments out the "etc/sync/serialctl" line | 16 | # This sed comments out the "etc/sync/serialctl" line |
17 | /usr/bin/env sed 's%^#\(pd:[0-9]:respawn:/etc/sync/serialctl\)%\1%' /etc/inittab > /etc/inittab.tmp | 17 | /bin/sed 's%^#\(pd:[0-9]:respawn:/etc/sync/serialctl\)%\1%' /etc/inittab > /etc/inittab.tmp |
18 | 18 | ||
@@ -22,7 +22,7 @@ if [ $? -eq 0 ]; then | |||
22 | # This "cp -af" puts the new /etc/inittab into place | 22 | # This "cp -af" puts the new /etc/inittab into place |
23 | /usr/bin/env cp -af /etc/inittab.tmp /etc/inittab | 23 | /bin/cp -af /etc/inittab.tmp /etc/inittab |
24 | # Unlink the tmp file | 24 | # Unlink the tmp file |
25 | rm /etc/inittab.tmp | 25 | /bin/rm /etc/inittab.tmp |
26 | # HUP init | 26 | # HUP init |
27 | /usr/bin/env kill -HUP 1 | 27 | /bin/kill -HUP 1 |
28 | fi | 28 | fi |