forked from qzeleza/kvas
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Добавлен новый вариант установки пакета при помощи команды: **/opt/bi…
…n/sh -c **
- Loading branch information
Showing
22 changed files
with
19 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,7 +5,6 @@ | |
# Специфичиские пути | ||
.DS_Store | ||
.idea/ | ||
ipk/ | ||
.env | ||
|
||
## User-specific stuff | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
|
||
last_package_ver=$(curl -s https://github.com/qzeleza/kvas/releases | grep "Версия" | head -1| sed -n 's/.*Версия\(.*\)<\/h.*/\1/p' | tr -d ' ') | ||
file_name=kvas_${last_package_ver}_all.ipk | ||
package_name=https://github.com/qzeleza/kvas/releases/download/v${last_package_ver}/${file_name} | ||
|
||
mkdir -p /opt/packages | ||
cd /opt/packages || { | ||
echo "Невозможно создать папку /opt/packages"; | ||
exit 1 | ||
} | ||
echo 'Установка пакета, ждите...' | ||
echo ---------------------------------------------------------------- | ||
opkg update && opkg upgrade && opkg install curl iptables &>/dev/null | ||
curl -LsJO "${package_name}" &>/dev/null | ||
opkg install "./${file_name}" && clear && kvas setup |
Binary file not shown.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters