static usb ethnet addresses
[automated-distro-installer] / debian-pxe-preseed
index f97319451cbcc9352c1fdfbad32ba816e6c36ac8..aaef9a617344827b13f8d22221dbbfd2bb0b01ca 100755 (executable)
 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
 
 
-cleanup() { :; }
-set -eE -o pipefail
-trap 'cleanup; echo "$0:$LINENO:error: \"$BASH_COMMAND\" returned $?" >&2' ERR
+# WARNING: outdated! needs docs and update to debian-stretch
 
+x="$(readlink -f "$BASH_SOURCE")"; source "${x%/*}/bash-trace"
 
 [[ $EUID == 0 ]] || exec sudo "$BASH_SOURCE" "$@"
 
@@ -29,8 +28,8 @@ e() { echo "$*"; "$@"; }
 
 mount_dir=$(mktemp -d)
 
-cleanup() { cd; umount -f $mount_dir; }
-e mount -o users wrt:/mnt/usb $mount_dir
+err-cleanup() { cd; umount -f $mount_dir; }
+e mount -o users cmc:/mnt/usb $mount_dir
 
 
 cd $mount_dir
@@ -44,4 +43,4 @@ e ln -s debian-wheezy tftpboot
 
 cd /
 e umount $mount_dir
-e $src/pxe-server -p plain # my script
+e $src/pxe-server default plain # my script