Created
April 29, 2024 18:42
-
-
Save cleverca22/3bb4cd917b3dbb7e0047e9b45c60d570 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[root@router:~]# ps aux | grep dhcpd | |
dhcpd 928 0.0 0.0 19428 5808 ? Ss Mar21 10:36 dhcpd4 -4 -pf /run/dhcpd4/dhcpd.pid -cf /nix/store/xglyk02p79bhd9zjgmqgcxb9yqyvrak7-dhcpd.conf -lf /var/lib/dhcpd4/dhcpd.leases enp4s2f1 | |
[root@router:~]# cat /nix/store/xglyk02p79bhd9zjgmqgcxb9yqyvrak7-dhcpd.conf | |
option rpiboot code 43 = text; | |
subnet 10.0.0.0 netmask 255.255.255.0 { | |
option subnet-mask 255.255.255.0; | |
option broadcast-address 10.0.0.255; | |
option routers 10.0.0.1; | |
option domain-name-servers 10.0.0.1; | |
range 10.0.0.100 10.0.0.200; | |
default-lease-time 86400; # 1 day | |
option rpiboot "Raspberry Pi Boot "; | |
} | |
[root@router:~]# ps aux | grep xinet | |
root 878 0.0 0.0 6164 2444 ? Ss Mar21 0:00 xinetd -syslog daemon -dontfork -stayalive -f /nix/store/xnylaj176m6gb82ydkhawgdbvsjgdk9f-xinetd.conf | |
[root@router:~]# cat /nix/store/xnylaj176m6gb82ydkhawgdbvsjgdk9f-xinetd.conf | |
defaults | |
{ | |
log_type = SYSLOG daemon info | |
log_on_failure = HOST | |
log_on_success = PID HOST DURATION EXIT | |
} | |
service tftp | |
{ | |
protocol = udp | |
socket_type = dgram | |
wait = yes | |
user = nobody | |
server = /nix/store/2n9w9484wizr7nfnn227j3v844rpvs1j-netkit-tftp-0.17/sbin/in.tftpd | |
server_args = /tftproot | |
} | |
[root@router:~]# ls -lLh /tftproot/bootcode.bin | |
-rw-r--r-- 1 root root 111K Nov 1 19:08 /tftproot/bootcode.bin |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment