Skip to content

Commit

Permalink
v0.4.1 Readme
Browse files Browse the repository at this point in the history
  • Loading branch information
tavinus authored Nov 9, 2022
1 parent a4aac6a commit 0caa648
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,9 @@ It is probably the opposite for releases (recommended to upgrade), since you wil

### Help example:
```
# opkg-upgrade -h
root@OpenWrt:~# opkg-upgrade --help
Simple OPKG Updater v0.4.0
Simple OPKG Updater v0.4.1
Usage: opkg-upgrade [options]
Expand All @@ -48,6 +48,8 @@ Options:
-l, --list-upgrades Prints the list of available updates and exits
-e, --email-list Prints the list of updates in html email format
Includes subject, mime type and html formated data
-s, --ssmtp <email> Use the system's ssmtp to send update reports
You need to install and configure ssmtp beforehand
-m, --msmtp <email> Use the system's msmtp to send update reports
You need to install and configure msmtp beforehand
-a, --always-send Send e-mail even if there are no updates
Expand All @@ -61,16 +63,16 @@ Options:
Notes:
- Short options should not be grouped. You must pass each parameter on its own.
- You must have a working msmtp install to use the msmtp functionality. Make
sure you can send e-mails from it before trying from opkg-upgrade.
- You must have a working ssmtp or msmtp install to use the email functionality.
Make sure you can send e-mails from it before trying from opkg-upgrade.
Examples:
opkg-upgrade -n -f # run without updating listings and asking for upgrade
opkg-upgrade --install # install to /usr/sbin/opkg-upgrade
opkg-upgrade -l # just print upgrades available
opkg-upgrade -e # just print html formatted email
opkg-upgrade -s '[email protected]' # mail upgrade report if have updates
opkg-upgrade -a -s '[email protected]' # mail upgrade report even if NO updates
opkg-upgrade -a -m '[email protected]' # mail upgrade report even if NO updates
opkg-upgrade -u && echo 'upgrades are available' || echo 'no upgrades available'
```
Expand Down

0 comments on commit 0caa648

Please sign in to comment.