mirror of
https://github.com/martanne/bitpixie
synced 2026-06-08 15:44:32 +00:00
17 lines
397 B
Bash
Executable File
17 lines
397 B
Bash
Executable File
#!/bin/sh
|
|
|
|
[ $# -eq 0 ] && echo "usage: $0 <interface>" && exit 1
|
|
|
|
scriptpath="$( cd -- "$(dirname "$0")" >/dev/null 2>&1 ; pwd -P )"
|
|
interface=$1
|
|
|
|
sudo ip a add 10.13.37.100/24 dev $interface
|
|
|
|
sudo dnsmasq --no-daemon \
|
|
--interface=$interface \
|
|
--dhcp-range=10.13.37.100,10.13.37.200,255.255.255.0,1h \
|
|
--dhcp-boot=bootmgfw.efi \
|
|
--enable-tftp \
|
|
--tftp-root="$scriptpath/tftp" \
|
|
--log-dhcp
|