Author: bdubbs
Date: Thu Jan 24 14:25:14 2013
New Revision: 10104
Log:
Remove more bashisms in scripts
Modified:
trunk/BOOK/bootscripts/lfs/init.d/console
trunk/BOOK/bootscripts/lfs/lib/services/ipv4-static
Modified: trunk/BOOK/bootscripts/lfs/init.d/console
==============================================================================
--- trunk/BOOK/bootscripts/lfs/init.d/console Thu Jan 24 13:45:18 2013
(r10103)
+++ trunk/BOOK/bootscripts/lfs/init.d/console Thu Jan 24 14:25:14 2013
(r10104)
@@ -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" ]
}
Modified: trunk/BOOK/bootscripts/lfs/lib/services/ipv4-static
==============================================================================
--- trunk/BOOK/bootscripts/lfs/lib/services/ipv4-static Thu Jan 24 13:45:18
2013 (r10103)
+++ trunk/BOOK/bootscripts/lfs/lib/services/ipv4-static Thu Jan 24 14:25:14
2013 (r10104)
@@ -42,7 +42,7 @@
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
--
http://linuxfromscratch.org/mailman/listinfo/lfs-book
FAQ: http://www.linuxfromscratch.org/lfs/faq.html
Unsubscribe: See the above information page