Commit 0eea06de authored by iv's avatar iv

grandenet script: fix taking first found config.

parent ad395388
...@@ -112,7 +112,7 @@ fi ...@@ -112,7 +112,7 @@ fi
# try to find a saved configuration # try to find a saved configuration
if [ ! -r "${configfile}" ] ; then if [ ! -r "${configfile}" ] ; then
echo "Looking for configuration directory on external devices..." 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 if [ "${path}" != "" ] ; then
read -p "Use configuration directory found at: ${path} [Y/n]? " usefound read -p "Use configuration directory found at: ${path} [Y/n]? " usefound
else else
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment