#!/bin/sh #set -e # initramfs-tools header PREREQ="" prereqs() { echo "${PREREQ}" } case "${1}" in prereqs) prereqs exit 0 ;; esac # live-initramfs header . /scripts/live-functions log_begin_msg "Preconfiguring networking..." # live-initramfs script IFFILE="/root/etc/network/interfaces" if [ "${STATICIP}" = "frommedia" -a -e "$IFFILE" ] ; then # will use existent /etc/network/interfaces log_end_msg exit 0 fi cat > "$IFFILE" <> "$IFFILE" <> "$IFFILE" < /root/etc/resolv.conf <> /root/var/log/netboot.config fi fi #for i in eth0 eth1 eth2 ath0 wlan0; do # grep -q "iface $i" $IFFILE && continue # cat >> "$IFFILE" <