diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2013-05-02 13:10:11 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2013-05-02 13:10:11 +0000 |
commit | db521dfcda13f3b27cf0b2475a6e0c13ee61c3fb (patch) | |
tree | 42186bae1d9c3660a310395ab6bf21602058bc80 /initramfs-init.in | |
parent | 6d3cfd40793fe2206974d7fa5f852efec023fdff (diff) | |
download | mkinitfs-db521dfcda13f3b27cf0b2475a6e0c13ee61c3fb.tar.bz2 mkinitfs-db521dfcda13f3b27cf0b2475a6e0c13ee61c3fb.tar.xz |
init: dont use bash style ==
Diffstat (limited to 'initramfs-init.in')
-rwxr-xr-x | initramfs-init.in | 8 |
1 files 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) |