forked from mirror/openwrt
23 lines
410 B
Bash
Executable file
23 lines
410 B
Bash
Executable file
#!/bin/bash
|
|
IFNAME=enp101s0f4u1
|
|
IP="192.168.88.10"
|
|
BOOTFILE="mikrotik.initramfs"
|
|
|
|
/sbin/ip addr replace $IP/24 dev $IFNAME
|
|
/sbin/ip link set dev $IFNAME up
|
|
|
|
|
|
|
|
/usr/sbin/dnsmasq \
|
|
--no-daemon \
|
|
--listen-address $IP \
|
|
--bind-interfaces \
|
|
-p0 \
|
|
--dhcp-authoritative \
|
|
--dhcp-range=192.168.88.100,192.168.88.200 \
|
|
--bootp-dynamic \
|
|
--dhcp-boot=mikrotik.initramfs \
|
|
--log-dhcp \
|
|
--enable-tftp \
|
|
--tftp-root=$(pwd)
|
|
|