mirror of
https://git.linuxfromscratch.org/lfs.git
synced 2025-03-06 06:14:47 +00:00
Remove more bashisms in scripts
git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@10104 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
This commit is contained in:
parent
53ea84b7e5
commit
49f236b73e
@ -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" ]
|
||||
}
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user