I found that ktutil a pain to script via Bash. This code is _only_ to for my specific problem, but you should be able to easily change it to suite your needs.
No Image posted. Post new screenshot
Your rating for auto_ktutil