summaryrefslogtreecommitdiffstats
path: root/initramfs/initrd-stuff/init
diff options
context:
space:
mode:
Diffstat (limited to 'initramfs/initrd-stuff/init')
-rwxr-xr-xinitramfs/initrd-stuff/init4
1 files changed, 2 insertions, 2 deletions
diff --git a/initramfs/initrd-stuff/init b/initramfs/initrd-stuff/init
index 18c06f22..366086ee 100755
--- a/initramfs/initrd-stuff/init
+++ b/initramfs/initrd-stuff/init
@@ -264,8 +264,8 @@ ipsetup 127.0.0.1 255.0.0.0 0.0.0.0 127.255.255.255 lo
# of it into several variables
if [ -n "$IPINFO" ] ; then
getip () {
- val=$IPINFO; i=$(expr $1 - 1);
- while [ $i -ge 0 ] ; do
+ val="$IPINFO:"; i=$(expr $1 - 1);
+ while [ $i -gt 0 ] ; do
val=${val#*:} ; i=$(expr $i - 1);
done;
echo $val|sed "s/:.*//"; }