@@ -32,9 +32,9 @@ It is probably the opposite for releases (recommended to upgrade), since you wil
32
32
33
33
### Help example:
34
34
```
35
- # opkg-upgrade -h
35
+ root@OpenWrt:~ # opkg-upgrade --help
36
36
37
- Simple OPKG Updater v0.4.0
37
+ Simple OPKG Updater v0.4.1
38
38
39
39
Usage: opkg-upgrade [options]
40
40
@@ -48,6 +48,8 @@ Options:
48
48
-l, --list-upgrades Prints the list of available updates and exits
49
49
-e, --email-list Prints the list of updates in html email format
50
50
Includes subject, mime type and html formated data
51
+ -s, --ssmtp <email> Use the system's ssmtp to send update reports
52
+ You need to install and configure ssmtp beforehand
51
53
-m, --msmtp <email> Use the system's msmtp to send update reports
52
54
You need to install and configure msmtp beforehand
53
55
-a, --always-send Send e-mail even if there are no updates
@@ -61,16 +63,16 @@ Options:
61
63
62
64
Notes:
63
65
- Short options should not be grouped. You must pass each parameter on its own.
64
- - You must have a working msmtp install to use the msmtp functionality. Make
65
- sure you can send e-mails from it before trying from opkg-upgrade.
66
+ - You must have a working ssmtp or msmtp install to use the email functionality.
67
+ Make sure you can send e-mails from it before trying from opkg-upgrade.
66
68
67
69
Examples:
68
70
opkg-upgrade -n -f # run without updating listings and asking for upgrade
69
71
opkg-upgrade --install # install to /usr/sbin/opkg-upgrade
70
72
opkg-upgrade -l # just print upgrades available
71
73
opkg-upgrade -e # just print html formatted email
72
74
opkg-upgrade -s '[email protected] ' # mail upgrade report if have updates
73
- opkg-upgrade -a -s '[email protected] ' # mail upgrade report even if NO updates
75
+ opkg-upgrade -a -m '[email protected] ' # mail upgrade report even if NO updates
74
76
opkg-upgrade -u && echo 'upgrades are available' || echo 'no upgrades available'
75
77
76
78
```
0 commit comments