summaryrefslogtreecommitdiffstats
path: root/meta-networking/recipes-support/nis
diff options
context:
space:
mode:
authorJoe MacDonald <joe_macdonald@mentor.com>2015-07-16 15:11:58 -0400
committerJoe MacDonald <joe_macdonald@mentor.com>2015-07-30 11:34:06 -0400
commitfb815a114b8217681aaf534e1cdcf378189d5164 (patch)
treee2737ad31b9874b74e46a650db2a92768a3d9677 /meta-networking/recipes-support/nis
parentf637fadb106a09a6f3dfba4181d06dc9b5e82ff5 (diff)
downloadmeta-openembedded-fb815a114b8217681aaf534e1cdcf378189d5164.tar.gz
ypbind: remove bashisms from initscript
Remove three very minor bashisms, all about redirecting stdout/stderr. The initscript identifies as /bin/sh, this change ensures that the script should work with a non-bash /bin/sh as well. Signed-off-by: Joe MacDonald <joe_macdonald@mentor.com>
Diffstat (limited to 'meta-networking/recipes-support/nis')
-rw-r--r--meta-networking/recipes-support/nis/files/ypbind-yocto.init6
1 files changed, 3 insertions, 3 deletions
diff --git a/meta-networking/recipes-support/nis/files/ypbind-yocto.init b/meta-networking/recipes-support/nis/files/ypbind-yocto.init
index 5f50a530e..2c50d12e6 100644
--- a/meta-networking/recipes-support/nis/files/ypbind-yocto.init
+++ b/meta-networking/recipes-support/nis/files/ypbind-yocto.init
@@ -31,13 +31,13 @@ case "$1" in
31 echo -n "Starting ypbind" 31 echo -n "Starting ypbind"
32 ## If the domainname is not set, skip starting of ypbind 32 ## If the domainname is not set, skip starting of ypbind
33 ## and return with "program not configured" 33 ## and return with "program not configured"
34 /bin/ypdomainname &> /dev/null 34 /bin/ypdomainname >/dev/null 2>&1
35 if [ $? -ne 0 -o -z "`/bin/ypdomainname 2>/dev/null`" ]; then 35 if [ $? -ne 0 -o -z "`/bin/ypdomainname 2>/dev/null`" ]; then
36 if [ -f /etc/defaultdomain ]; then 36 if [ -f /etc/defaultdomain ]; then
37 XDOMAINNAME=`cat /etc/defaultdomain` 37 XDOMAINNAME=`cat /etc/defaultdomain`
38 /bin/ypdomainname "$XDOMAINNAME" 38 /bin/ypdomainname "$XDOMAINNAME"
39 fi 39 fi
40 /bin/ypdomainname &> /dev/null 40 /bin/ypdomainname >/dev/null 2>&1
41 if [ $? -ne 0 -o -z "`/bin/ypdomainname 2>/dev/null`" ]; then 41 if [ $? -ne 0 -o -z "`/bin/ypdomainname 2>/dev/null`" ]; then
42 # Tell the user this has skipped 42 # Tell the user this has skipped
43 echo -n " . . . . . . . . . . No domainname set" 43 echo -n " . . . . . . . . . . No domainname set"
@@ -66,7 +66,7 @@ case "$1" in
66 if [ $? -eq 0 ]; then 66 if [ $? -eq 0 ]; then
67 notfound=1 67 notfound=1
68 for i in 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15; do 68 for i in 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15; do
69 ypwhich &>/dev/null && { notfound=0 ; break; }; 69 ypwhich >/dev/null 2>&1 && { notfound=0 ; break; };
70 echo -n " ." 70 echo -n " ."
71 sleep 1; 71 sleep 1;
72 done 72 done