Hello community,
I've used to mount a CIFS share after booting the router with simply editing my mounts to /etc/fstab and enabling the fstab service (service fstab enable).
I think since 18.06.02 (not quite sure), this file has been marked as obsolete. I checked the file itself:
root@OpenWrt:~# cat /etc/init.d/fstab
#!/bin/sh /etc/rc.common
# (C) 2013 openwrt.org
START=40
boot() {
/sbin/block mount
}
start() {
echo "this file has been obsoleted. please call \"/sbin/block mount\" directly"
}
stop() {
/sbin/block umount
}
What is the proper way to mount a CIFS share on boot? Sure, I can add my mount command to /etc/rc.local and I also found some crazy approach with a "hotplug-script" (?!) here.
Both ways however doesn't seem as the proper approach to me - might be just me however.
Could somebody please tell me the proper approach of mounting a CIFS share on/right after boot?
Thanks a lot!