remove setup_client.sh

This commit is contained in:
Peter McGoron 2023-06-14 15:27:34 -04:00
parent a96736fdfb
commit 59a7ca9de5
1 changed files with 0 additions and 17 deletions

View File

@ -1,17 +0,0 @@
#!/bin/sh
if [ $(id -u) != 0 ]; then
echo 'script must be run as root'
exit 1
fi
INTER="$1"
BINARY="$(realpath $2)"
ip link set "$INTER" up
ip addr add 192.168.1.100/24 dev "$INTER"
BOOTDIR=$(mktemp -d)
cp "$BINARY" "$BOOTDIR"/boot.bin
cd "$BOOTDIR"
dnsmasq -d --port=0 --enable-tftp --tftp-root="$BOOTDIR" --user=root --group=root --interface="$INTER"