change if names from enp*s0 to eth*
including all cfg files!
This commit is contained in:
@ -14,5 +14,5 @@
|
||||
|
||||
# On what interfaces should the DHCP server (dhcpd) serve DHCP requests?
|
||||
# Separate multiple interfaces with spaces, e.g. "eth0 eth1".
|
||||
INTERFACESv4="enp2s0 enp3s0 enp4s0"
|
||||
INTERFACESv4="eth1 eth2 eth3"
|
||||
INTERFACESv6=""
|
||||
|
@ -1,7 +1,7 @@
|
||||
export EDITOR=nano
|
||||
echo "-----------------------------------------------------"
|
||||
echo "Welcome to $HOSTNAME $(hostname -I)"
|
||||
echo "ethernet addr $(cat /sys/class/net/enp1s0/address) .. $(cat /sys/class/net/enp4s0/address)"
|
||||
echo "ethernet addr $(cat /sys/class/net/eth0/address) .. $(cat /sys/class/net/eth3/address)"
|
||||
function service_status () {
|
||||
for name in $@; do \
|
||||
enabled=$(systemctl is-enabled ${name} 2> /dev/null) && \
|
||||
|
Reference in New Issue
Block a user