X-Git-Url: https://iankelling.org/git/?p=automated-distro-installer;a=blobdiff_plain;f=fai%2Fconfig%2Ffiles%2Fetc%2Frc.local%2FFAISERVER;h=4b7b4a2b879baec20bd2c02a630eb834b5bd0a11;hp=8bbfd291f4edcaa084d06b65a72a31a3f2908696;hb=2773c14668a490a1254a63541e1ef9fd3377104b;hpb=7024f2155d8d5e4754d5c1ce0ccf8352149f81cd diff --git a/fai/config/files/etc/rc.local/FAISERVER b/fai/config/files/etc/rc.local/FAISERVER index 8bbfd29..4b7b4a2 100755 --- a/fai/config/files/etc/rc.local/FAISERVER +++ b/fai/config/files/etc/rc.local/FAISERVER @@ -10,7 +10,7 @@ GREEN='\E[32m' set -o pipefail # setup network -nic=$(grep iface /etc/network/interfaces| awk '{print $2}'|egrep -v ^lo) +nic=$(awk '/iface/ {print $2}' /etc/network/interfaces |egrep -v ^lo) ifup $nic # regenerate ssh_host keys ls /etc/ssh/ssh_host_* > /dev/null @@ -18,7 +18,7 @@ if [ $? -ne 0 ]; then dpkg-reconfigure -fnoninteractive openssh-server fi sleep 8 -[ -x /etc/init.d/nscd ] && /etc/init.d/nscd restart +[ -x /etc/init.d/nscd ] && invoke-rc.d nscd restart echo "=================================" echo "Setting up the FAI install server"