diff --git a/alpine/packages/hvtools/hv_set_ifconfig b/alpine/packages/hvtools/hv_set_ifconfig index 09175fe52..3da655487 100755 --- a/alpine/packages/hvtools/hv_set_ifconfig +++ b/alpine/packages/hvtools/hv_set_ifconfig @@ -1,4 +1,4 @@ -#!/bin/bash +#!/bin/sh # This example script activates an interface based on the specified # configuration. @@ -70,21 +70,20 @@ ifdown $DEVICE # create a new interfaces file echo "auto lo" > $outf echo "iface lo inet loopback" >> $outf -echo "" >> outf +echo "" >> $outf echo "auto $DEVICE" >> $outf if [ "$BOOTPROTO" = "dhcp" ]; then echo "iface $DEVICE inet dhcp" >> $outf else echo "iface $DEVICE inet static" >> $outf - echo " address $IPADDR0" >> outf - echo " netmask $NETMASK0" >> outf - echo " gateway $GATEWAY" >> outf + echo " address $IPADDR0" >> $outf + echo " netmask $NETMASK0" >> $outf + echo " gateway $GATEWAY" >> $outf + echo " nameserver $DNS1 $DNS2 $DNS3" >> $outf fi -echo " nameserver $DNS0" >> outf - -echo " hwaddress ether $HWADDR" >> outf +echo " hwaddress ether $HWADDR" >> $outf # Up the interface ifup $DEVICE