Rewrote in bash

This commit is contained in:
Joshua Sherman 2013-10-28 16:22:30 +00:00
parent 9fa7e85fa1
commit fd87d6bef6
2 changed files with 12 additions and 0 deletions

View file

12
tmpufw.sh Executable file
View file

@ -0,0 +1,12 @@
#!/bin/bash
if [ $# == 0 ]
then
echo 'Usage: ./tmpufw.sh [rule]'
exit 2
else
rule=$(printf ' %s' "$@")
ufw $rule
echo 'ufw delete $rule' | at NEXT MONTH
fi