I have two cifs shares mount in fstab and when I shutting down computer (elementaryOS Loki) system waiting 90sec because WiFi connection was closed earlier. I tried to:
- Create a file /etc/init.d/umountcifs containing the CIFS unmount command:
[ "$1" = "stop" ] && umount -a -t cifs -l"
and link to it at the start of the "init.d" shutdown process like so:
sudo ln -s /etc/init.d/umountcifs /etc/rc0.d/K02umountcifs sudo ln -s /etc/init.d/umountcifs /etc/rc6.d/K02umountcifs
- Add script to NetworkManager:
umount -a -l -t cifs"
- Fstab Ad the x-systemd.requires=network.target to line in fstab.
And still is the same - system waiting on shutdown. Can somebody help?