Skip to content

Commit

Permalink
Merge pull request #33 from kedder/install-script
Browse files Browse the repository at this point in the history
Add install/uninstall scripts
  • Loading branch information
kedder committed Mar 21, 2021
2 parents 7f1fb6c + 81784b6 commit 5f4019e
Show file tree
Hide file tree
Showing 3 changed files with 39 additions and 6 deletions.
9 changes: 3 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,20 +41,17 @@ The easiest way to install is using `opkg` package manager on
internet-connected Openvario device.

```sh
echo src/gz kedder_core http://openvario.lebedev.lt/opkg/armv7vet2hf-neon >> /etc/opkg/customfeeds.conf
echo src/gz kedder_all http://openvario.lebedev.lt/opkg/all >> /etc/opkg/customfeeds.conf
opkg update
opkg install openvario-shell openvario-shell-autostart --force-removal-of-dependent-packages
wget https://raw.githubusercontent.com/kedder/openvario-shell/master/scripts/openvario-shell-install.sh -O - | sh
```

After executing these commands, `ovshell` command should be available. It will
After executing this command, `ovshell` command should be available. It will
start automatically next time Openvario boots up.

In case you didn't like it and would like to return to stock Openvario menu,
run this command:

```sh
opkg install ovmenu-ng ovmenu-ng-autostart --force-removal-of-dependent-packages
wget https://raw.githubusercontent.com/kedder/openvario-shell/master/scripts/openvario-shell-uninstall.sh -O - | sh
```

## Development
Expand Down
24 changes: 24 additions & 0 deletions scripts/openvario-shell-install.sh
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.
12 changes: 12 additions & 0 deletions scripts/openvario-shell-uninstall.sh
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.

0 comments on commit 5f4019e

Please sign in to comment.