It's been a while, my bash scripting is rusty.
Could someone please recommend a simple bash script I could run a cron job every 15-20 minutes that would check if there had been zero network activity so I can disable the network ?