#!/bin/sh
# hardwire eth0 at 192.168.0.1/24

. install2-init-functions

IFACEDIR="$destdir/etc/net/ifaces/"

# this default is hardwired in several more places at the moment...
mkdir -p $IFACEDIR/eth{0,1}
echo 192.168.0.1/24 > "$IFACEDIR/eth0/ipv4address"
cat > "$IFACEDIR/eth0/options" << EOF
TYPE=eth
BOOTPROTO=static
NM_CONTROLLED=no
DISABLED=no
EOF

# just in case
echo "NM_CONTROLLED=no" > "$IFACEDIR/eth1/options"
