Cool :-) Are you going to push this to extras-devel?
A minor nitpick: I think you meant to use $MMAX & $PID in the main line, ie Code: KILL=$(busybox awk -v MMAX="$MMAX" '($1 == "VmSize:") {if ($2>MMAX) print 1 }' \ /proc/$PID/status) 2>/dev/null
KILL=$(busybox awk -v MMAX="$MMAX" '($1 == "VmSize:") {if ($2>MMAX) print 1 }' \ /proc/$PID/status) 2>/dev/null
While we're at it, I wonder if there's some way to detect when /var/lib/gps/nvd_data has become stale and get rid of it as well...