fix boxtools for rpi
- remove to_cm4 - create replace_in_file
This commit is contained in:
@ -1,18 +0,0 @@
|
||||
# Defaults for isc-dhcp-server (sourced by /etc/init.d/isc-dhcp-server)
|
||||
|
||||
# Path to dhcpd's config file (default: /etc/dhcp/dhcpd.conf).
|
||||
#DHCPDv4_CONF=/etc/dhcp/dhcpd.conf
|
||||
#DHCPDv6_CONF=/etc/dhcp/dhcpd6.conf
|
||||
|
||||
# Path to dhcpd's PID file (default: /var/run/dhcpd.pid).
|
||||
#DHCPDv4_PID=/var/run/dhcpd.pid
|
||||
#DHCPDv6_PID=/var/run/dhcpd6.pid
|
||||
|
||||
# Additional options to start dhcpd with.
|
||||
# Don't use options -cf or -pf here; use DHCPD_CONF/ DHCPD_PID instead
|
||||
#OPTIONS=""
|
||||
|
||||
# On what interfaces should the DHCP server (dhcpd) serve DHCP requests?
|
||||
# Separate multiple interfaces with spaces, e.g. "eth0 eth1".
|
||||
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/eth0/address) .. $(cat /sys/class/net/eth3/address)"
|
||||
echo "ethernet addr $(cat /sys/class/net/eth0/address)"
|
||||
function service_status () {
|
||||
for name in $@; do \
|
||||
enabled=$(systemctl is-enabled ${name} 2> /dev/null) && \
|
||||
|
@ -5,7 +5,7 @@ Before=network.pre-target
|
||||
|
||||
[Service]
|
||||
Type=oneshot
|
||||
ExecStart = /usr/bin/bash /home/l_samenv/boxtools/sethostname.sh
|
||||
ExecStart = /usr/bin/bash /home/l_samenv/boxtools/rpihostname.sh
|
||||
RemainAfterExit=yes
|
||||
|
||||
[Install]
|
||||
|
Reference in New Issue
Block a user