Prevent errors when enabling "Fast" network boot multiple times

Fixes #17
This commit is contained in:
Andrew Scheller 2016-04-01 14:59:40 +01:00
parent c00aa8d1cc
commit bcdfa348b3

View File

@ -863,7 +863,7 @@ do_wait_for_network() {
if [ $? -eq 0 ]; then if [ $? -eq 0 ]; then
case "$RET" in case "$RET" in
Fast) Fast)
rm /etc/systemd/system/dhcpcd.service.d/wait.conf rm -f /etc/systemd/system/dhcpcd.service.d/wait.conf
;; ;;
Slow) Slow)
mkdir -p /etc/systemd/system/dhcpcd.service.d/ mkdir -p /etc/systemd/system/dhcpcd.service.d/