aboutsummaryrefslogtreecommitdiffstats
path: root/bootscripts
diff options
context:
space:
mode:
authorBruce Dubbs <bdubbs@linuxfromscratch.org>2013-01-24 22:25:14 +0000
committerBruce Dubbs <bdubbs@linuxfromscratch.org>2013-01-24 22:25:14 +0000
commit49f236b73e9f3e954f1d2eec518ccb552ed25b09 (patch)
tree07d056a422a6578561af75e22a9f952f50dd6923 /bootscripts
parent53ea84b7e5ff24e53bb4e187a8c514f4cf2edf11 (diff)
Remove more bashisms in scripts
git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@10104 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
Diffstat (limited to 'bootscripts')
-rw-r--r--bootscripts/lfs/init.d/console2
-rwxr-xr-xbootscripts/lfs/lib/services/ipv4-static2
2 files changed, 2 insertions, 2 deletions
diff --git a/bootscripts/lfs/init.d/console b/bootscripts/lfs/init.d/console
index 17a59e8a3..1a4921005 100644
--- a/bootscripts/lfs/init.d/console
+++ b/bootscripts/lfs/init.d/console
@@ -32,7 +32,7 @@
# Native English speakers probably don't have /etc/sysconfig/console at all
[ -r /etc/sysconfig/console ] && . /etc/sysconfig/console
-function is_true()
+is_true()
{
[ "$1" = "1" ] || [ "$1" = "yes" ] || [ "$1" = "true" ]
}
diff --git a/bootscripts/lfs/lib/services/ipv4-static b/bootscripts/lfs/lib/services/ipv4-static
index daff3fe8b..2d9dad39c 100755
--- a/bootscripts/lfs/lib/services/ipv4-static
+++ b/bootscripts/lfs/lib/services/ipv4-static
@@ -42,7 +42,7 @@ fi
case "${2}" in
up)
- if [ "$(ip addr show ${1} 2>/dev/null | grep ${IP}/)" == "" ]; then
+ if [ "$(ip addr show ${1} 2>/dev/null | grep ${IP}/)" = "" ]; then
# Cosmetic output not needed for multiple services
if ! $(echo ${SERVICE} | grep -q " "); then