diff options
Diffstat (limited to 'widgets/system_updatestatus/system_update_status')
-rwxr-xr-x | widgets/system_updatestatus/system_update_status | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/widgets/system_updatestatus/system_update_status b/widgets/system_updatestatus/system_update_status new file mode 100755 index 00000000..50bdc037 --- /dev/null +++ b/widgets/system_updatestatus/system_update_status @@ -0,0 +1,17 @@ +#!/bin/bash + +APTCHECK=/usr/lib/update-notifier/apt-check + +rm -f updates security_updates + +if [ ! -f ${APTCHECK} ] +then + exit +fi + +RET=$(${APTCHECK} 2>&1) + +# updates +echo $RET | cut -d";" -f1 > updates +# security updates +echo $RET | cut -d";" -f2 > security_updates |