home: hub: mkinitfs

Download patch

ref: db521dfcda13f3b27cf0b2475a6e0c13ee61c3fb
parent: 6d3cfd40793fe2206974d7fa5f852efec023fdff
author: Natanael Copa <ncopa@alpinelinux.org>
date: Thu May 2 08:10:11 CDT 2013

init: dont use bash style ==

--- a/initramfs-init.in
+++ b/initramfs-init.in
@@ -281,8 +281,8 @@
 	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 @@
 	[ -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 @@
 #   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)