actions_firmware.conf 1.57 KB
Newer Older
1 2
[check]
command:/usr/local/opnsense/scripts/firmware/check.sh
3 4 5 6 7
parameters:
type:script_output
message:retrieve package status

[upgrade]
8
command: /usr/sbin/daemon -f /usr/local/opnsense/scripts/firmware/upgrade.sh
9
parameters:%s
10
type:script
11
message:upgrading %s
12

13 14 15 16 17 18
[reinstall]
command: /usr/sbin/daemon -f /usr/local/opnsense/scripts/firmware/reinstall.sh
parameters:%s
type:script
message: reinstalling firmware package %s

19 20 21 22 23 24 25 26 27 28 29 30
[lock]
command: /usr/sbin/daemon -f /usr/local/opnsense/scripts/firmware/lock.sh
parameters:%s
type:script
message: locking firmware package %s

[unlock]
command: /usr/sbin/daemon -f /usr/local/opnsense/scripts/firmware/unlock.sh
parameters:%s
type:script
message: unlocking firmware package %s

31 32 33 34 35 36 37 38 39 40 41 42
[install]
command: /usr/sbin/daemon -f /usr/local/opnsense/scripts/firmware/install.sh
parameters:%s
type:script
message: installing firmware package %s

[remove]
command: /usr/sbin/daemon -f /usr/local/opnsense/scripts/firmware/remove.sh
parameters:%s
type:script
message: remove firmware package %s

43
[status]
44 45 46 47
command:cat /tmp/pkg_upgrade.progress 2>&1
parameters:
type:script_output
message:retrieve upgrade progress status
48 49

[local]
50
command:pkg query "%n|||%v|||%c|||%sh|||%k"
51 52 53 54 55
parameters:
type:script_output
message:view local packages

[remote]
56
command: pkg rquery "%n|||%v|||%c|||%sh|||0"
57 58 59
parameters:
type:script_output
message:view remote packages
60 61 62 63 64 65 66 67 68 69 70 71

[mirror]
command:/usr/local/sbin/opnsense-update -sm
parameters:%s
type:script
message:switching firmware mirror to %s

[flavour]
command:/usr/local/sbin/opnsense-update -sn
parameters:%s
type:script
message:switching firmware flavour to %s