-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #33 from kedder/install-script
Add install/uninstall scripts
- Loading branch information
Showing
3 changed files
with
39 additions
and
6 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
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,24 @@ | ||
#!/bin/sh -e | ||
# Installation script for openvario-shell. | ||
# | ||
# Run it on your openvario-device to replace the original menu system with | ||
# openvario-shell | ||
|
||
FEED_FILENAME="/etc/opkg/customfeeds.conf" | ||
|
||
grep -q "kedder_core" $FEED_FILENAME | ||
if [[ $? != 0 ]]; then | ||
echo Installing opkg feeds to $FEED_FILENAME... | ||
echo src/gz kedder_core http://openvario.lebedev.lt/opkg/armv7vet2hf-neon >> $FEED_FILENAME | ||
echo src/gz kedder_all http://openvario.lebedev.lt/opkg/all >> $FEED_FILENAME | ||
fi | ||
|
||
echo Installing openvario-shell | ||
|
||
opkg update | ||
set -e | ||
opkg install openvario-shell openvario-shell-autostart --force-removal-of-dependent-packages | ||
|
||
echo | ||
echo | ||
echo openvario-shell is installed. Reboot your device. |
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,12 @@ | ||
#!/bin/sh -e | ||
# Uninstall openvario-shell and install the original menu back. | ||
# | ||
# Run it on your openvario-device to replace the original menu system with | ||
# openvario-shell | ||
|
||
set -e | ||
echo Replacing openvario-shell with the original Openvario menu | ||
opkg install ovmenu-ng ovmenu-ng-autostart --force-removal-of-dependent-packages | ||
|
||
echo | ||
echo openvario-shell is uninstalled. Reboot your device. |