Commit 0eea06de by iv

grandenet script: fix taking first found config.

1 parent ad395388
......@@ -112,7 +112,7 @@ fi
# try to find a saved configuration
if [ ! -r "${configfile}" ] ; then
echo "Looking for configuration directory on external devices..."
path=$(find "${mountpoint}" -maxdepth 3 -type d | grep re6stconf)
path=$(find "${mountpoint}" -maxdepth 3 -type d | grep re6stconf | head -n 1)
if [ "${path}" != "" ] ; then
read -p "Use configuration directory found at: ${path} [Y/n]? " usefound
else
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!