Reload fstab configurations

Is there any difference between this:
block umount && block mount; (taken from here)
And this:
/etc/init.d/fstab boot (taken from here)
And this one:
/etc/init.d/fstab reload (the way I usually do when reloading configs)

After importing basic USB device configurations using block detect | uci import fstab, the command /etc/init.d/fstab boot threw an error: block: hotplug-call call failed. I tried /etc/init.d/fstab reload and it worked. Haven't tried the first command though.

So, what is the correct what to reload fstab configuration after changing the content of /etc/config/fstab?

Btw, if both option device and uuid are used. Which one is prioritized?

config mount
    option device       '/dev/sda1'
    option uuid         '0473b9d7-3e50-4ca3-9fb7-5b7009ad08ff'
    option target       '/mnt/usb'
    option options      'rw,sync'
    option enabled      1

I found the answer myself, lol.

root@OpenWrt:~# cat /etc/init.d/fstab
#!/bin/sh /etc/rc.common
# (C) 2013


boot() {
    /sbin/block mount

start() {
    return 0

restart() {
    return 0

stop() {
    /sbin/block umount

So, basically the boot() and stop() functions call block mount and block umount under the hood. The other functions do nothing and return 0. There is no reload() function, and the block: hotplug-call call failed is just some sort of warning.

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.