Skip to content

Commit

Permalink
Fix installer issue for getting the router address
Browse files Browse the repository at this point in the history
  • Loading branch information
mastacontrola committed Jan 2, 2017
1 parent e8dfc1d commit a5963b7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions lib/common/input.sh
Expand Up @@ -44,9 +44,9 @@ if [[ $guessdefaults == 1 ]]; then
strSuggestedSubMask=$(mask2cidr $strSuggestedSubMask)
fi
submask=$strSuggestedSubMask
strSuggestedRoute=$(ip route | grep -E ${strSuggestedInterface} | tail -n1 | cut -d' ' -f3 | tr -d [:blank:])
strSuggestedRoute=$(ip route | grep -E ${strSuggestedInterface} | head -n1 | cut -d' ' -f3 | tr -d [:blank:])
if [[ -z $strSuggestedRoute ]]; then
strSuggestedRoute=$(route -n | grep "^.*U.*${strSuggestedInterface}$" | tail -n1)
strSuggestedRoute=$(route -n | grep -E "^.*U.*${strSuggestedInterface}$" | head -n1)
strSuggestedRoute=$(echo ${strSuggestedRoute:16:16} | tr -d [:blank:])
fi
strSuggestedDNS=""
Expand Down
2 changes: 1 addition & 1 deletion packages/web/management/languages/messages.pot
Expand Up @@ -8,7 +8,7 @@ msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2017-01-02 16:08-0500\n"
"POT-Creation-Date: 2017-01-02 16:51-0500\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
Expand Down

0 comments on commit a5963b7

Please sign in to comment.