From db521dfcda13f3b27cf0b2475a6e0c13ee61c3fb Mon Sep 17 00:00:00 2001 From: Natanael Copa Date: Thu, 2 May 2013 13:10:11 +0000 Subject: init: dont use bash style == --- initramfs-init.in | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/initramfs-init.in b/initramfs-init.in index f958cce..0626f6c 100755 --- a/initramfs-init.in +++ b/initramfs-init.in @@ -281,8 +281,8 @@ configure_ip() { local netmask="$4" local device="$6" local autoconf="$7" - [ "$client_ip" == "off" -o "$client_ip" == "none" ] && return - if [ "$client_ip" == "dhcp" ]; then + [ "$client_ip" = "off" -o "$client_ip" = "none" ] && return + if [ "$client_ip" = "dhcp" ]; then autoconf="dhcp" client_ip= fi @@ -290,7 +290,7 @@ configure_ip() { [ -n "$device" ] || device=$(ip_choose_if) [ -n "$device" ] || return - if [ "$autoconf" == "dhcp" ]; then + if [ "$autoconf" = "dhcp" ]; then if [ ! -e /usr/share/udhcpc/default.script ]; then echo "ERROR: DHCP requested but not present in initrd" return @@ -448,7 +448,7 @@ esac # alpine_repo=auto -- default, search for .boot_repository # alpine_repo=http://... -- network repository ALPINE_REPO=${KOPT_alpine_repo} -[ "$ALPINE_REPO" == "auto" ] && ALPINE_REPO= +[ "$ALPINE_REPO" = "auto" ] && ALPINE_REPO= # look for standard mountpoint locations ALPINE_MNT=$(find_mnt $ALPINE_DEV /etc/fstab) -- cgit v1.2.3