aboutsummaryrefslogtreecommitdiffstats
path: root/cron-sh/security.sh
diff options
context:
space:
mode:
Diffstat (limited to 'cron-sh/security.sh')
-rwxr-xr-xcron-sh/security.sh10
1 files changed, 10 insertions, 0 deletions
diff --git a/cron-sh/security.sh b/cron-sh/security.sh
index 9d48da5..e9a7eac 100755
--- a/cron-sh/security.sh
+++ b/cron-sh/security.sh
@@ -240,6 +240,16 @@ EOF
fi
}
+Notifylog() {
+ if [ ${NOTIFY_WARN} == yes ]; then
+ message=${1}
+ DBUS_SEND=`which DBUS_SEND 2>/dev/null`
+ if [ -x "$DBUS_SEND" -a -s ${message} ]; then
+ dbus-send --system --type=signal /com/mandriva/user com.mandriva.user.security_notification string:"$message"
+ fi
+ fi
+}
+
##################
. /usr/share/msec/diff_check.sh