All changes were made in the file /etc/inc/system.inc:
1. ADD an additional line after:
Code: Select all
exec("/bin/df -h", $rawdata);Code: Select all
exec("df -h | grep '/dev/' | grep '/mnt/' | awk '{print $6}'|cut -d/ -f3", $sharenames);2. REPLACE the following 2 lines:
Code: Select all
foreach ($config['mounts']['mount'] as $mountcfg) {
if (0 == strcmp($mountpoint, "{$g['media_path']}/{$mountcfg['sharename']}")) {
Code: Select all
foreach ($sharenames as $mountcfg) {
if (0 == strcmp($mountpoint, "{$g['media_path']}/{$mountcfg}")) {Code: Select all
$result[$mountpoint]['name'] = $mountcfg['sharename'];Code: Select all
$result[$mountpoint]['name'] = $mountcfg;
If this patch should be used for the embedded version of N4F one must copy the patched version of system.inc from a persistant place (e.g. data drive) after each reboot to /etc/inc. I do this with a postinit command, but perhaps this patch can go into system.inc for a next release of N4F if it's of interest for others so that this step won't be no longer necessary ...?
Regards, crest


