Skip to content

Commit fecea87

Browse files
Merge pull request #110 from ExtremeFiretop/ExtremeFiretop-Unmount
Update MerlinAU.sh Unmount
2 parents 57182aa + d0444aa commit fecea87

File tree

1 file changed

+1
-25
lines changed

1 file changed

+1
-25
lines changed

MerlinAU.sh

Lines changed: 1 addition & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -2337,30 +2337,6 @@ _EntwareServicesHandler_()
23372337
fi
23382338
}
23392339

2340-
##----------------------------------------##
2341-
## Modified by Martinski W. [2024-Jan-29] ##
2342-
##----------------------------------------##
2343-
_UnmountUSBDrives_()
2344-
{
2345-
local theDevice mountPointRegExp="^/dev/sd[a-z][0-9]+.* /tmp/mnt/.*"
2346-
2347-
mountedDevices="$(grep -E "$mountPointRegExp" /proc/mounts | awk -F ' ' '{print $1}')"
2348-
[ -z "$mountedDevices" ] && return 1
2349-
2350-
"$isInteractive" && \
2351-
printf "\nUnmounting USB-attached drives. Please wait...\n"
2352-
2353-
# Stop existing apps & services that may be using the USB drive #
2354-
/sbin/service stop_samba >/dev/null 2>&1
2355-
/sbin/service stop_nasapps >/dev/null 2>&1
2356-
sleep 2
2357-
2358-
for theDevice in $mountedDevices
2359-
do umount -f "$theDevice" 2>/dev/null; sleep 2 ; done
2360-
2361-
printf "\nDone.\n"
2362-
}
2363-
23642340
##----------------------------------------##
23652341
## Modified by Martinski W. [2024-Jan-25] ##
23662342
##----------------------------------------##
@@ -2832,7 +2808,7 @@ Please manually update to version $minimum_supported_version or higher to use th
28322808
echo
28332809

28342810
# *WARNING*: No more logging at this point & beyond #
2835-
_UnmountUSBDrives_
2811+
ejusb -1 0 -u 1
28362812

28372813
#-------------------------------------------------------
28382814
# Stop toggling LEDs during the F/W flash to avoid

0 commit comments

Comments
 (0)