fff-scripte/fff-list_dhcp_leases.sh
2017-03-25 14:05:13 +01:00

11 lines
133 B
Bash
Executable File

#!/bin/bash
if [ ! `id -u` = 0 ]
then
echo "you are not root"
exit 1
else
dhcp-lease-list --lease /var/lib/dhcp/dhcpd.leases
fi