#!/bin/sh # Parse netboot parameters from kernel command line BOOT_SERVER=$(getarg boot_server=) IMAGE_VERSION=$(getarg image_version=) [ -z "$BOOT_SERVER" ] && BOOT_SERVER="192.168.100.1" [ -z "$IMAGE_VERSION" ] && IMAGE_VERSION="latest" echo "BOOT_SERVER=$BOOT_SERVER" > /tmp/netboot.conf echo "IMAGE_VERSION=$IMAGE_VERSION" >> /tmp/netboot.conf info "Netboot: server=$BOOT_SERVER version=$IMAGE_VERSION"