X-Git-Url: https://git.librecmc.org/?a=blobdiff_plain;f=package%2Fluci%2Fmodules%2Fluci-mod-admin-full%2Fluasrc%2Fmodel%2Fcbi%2Fadmin_system%2Ffstab%2Fmount.lua;fp=package%2Fluci%2Fmodules%2Fluci-mod-admin-full%2Fluasrc%2Fmodel%2Fcbi%2Fadmin_system%2Ffstab%2Fmount.lua;h=f5751673fd77a29f403956eba53cb6fc45c41cc6;hb=ccaf380cb8c39c6f29ff08f009ef8d695b9c301c;hp=a85872afad852f7c9a46abdfca232196b06565b9;hpb=7872e94f9e17b314d88efa980d7c86632187633a;p=librecmc%2Flibrecmc.git diff --git a/package/luci/modules/luci-mod-admin-full/luasrc/model/cbi/admin_system/fstab/mount.lua b/package/luci/modules/luci-mod-admin-full/luasrc/model/cbi/admin_system/fstab/mount.lua index a85872afad..f5751673fd 100644 --- a/package/luci/modules/luci-mod-admin-full/luasrc/model/cbi/admin_system/fstab/mount.lua +++ b/package/luci/modules/luci-mod-admin-full/luasrc/model/cbi/admin_system/fstab/mount.lua @@ -56,8 +56,6 @@ mount:taboption("general", Flag, "enabled", translate("Enable this mount")).rmem o = mount:taboption("general", Value, "uuid", translate("UUID"), translate("If specified, mount the device by its UUID instead of a fixed device node")) -o:value("", translate("-- match by uuid --")) - for i, d in ipairs(devices) do if d.uuid and d.size then o:value(d.uuid, "%s (%s, %d MB)" %{ d.uuid, d.dev, d.size }) @@ -66,12 +64,12 @@ for i, d in ipairs(devices) do end end +o:value("", translate("-- match by label --")) + o = mount:taboption("general", Value, "label", translate("Label"), translate("If specified, mount the device by the partition label instead of a fixed device node")) -o:value("", translate("-- match by label --")) - o:depends("uuid", "") for i, d in ipairs(devices) do @@ -82,12 +80,12 @@ for i, d in ipairs(devices) do end end +o:value("", translate("-- match by device --")) + o = mount:taboption("general", Value, "device", translate("Device"), translate("The device file of the memory or partition (e.g. /dev/sda1)")) -o:value("", translate("-- match by device --")) - o:depends({ uuid = "", label = "" }) for i, d in ipairs(devices) do