Browse files

Adding helper to make cheat more useful

  • Loading branch information...
1 parent 6c491f1 commit 68039b24befa40abba9142341275d165f7d4c199 @demonbane committed May 2, 2011
Showing with 14 additions and 0 deletions.
  1. +12 −0 bash-helpers
  2. +2 −0 fixdns.sh
View
12 bash-helpers
@@ -18,3 +18,15 @@ function waitforpid {
}
# need to write waitforfile at some point
+
+if which cheat &> /dev/null; then
+ function gcheat {
+ if [ "$#" -eq 2 ] && [[ ! $2 = --* ]]; then
+ echo "cheat $1 | egrep $2"
+ cheat "$1" | egrep "$2"
+ else
+ echo "cheat $@"
+ cheat "$@"
+ fi
+ }
+fi
View
2 fixdns.sh
@@ -0,0 +1,2 @@
+#!/bin/bash
+echo -e "update delete shrike.argon.lan A\nupdate delete shrike.argon.lan TXT\nsend\nquit" | nsupdate -y rndc_key_dhcp:`cat ~/.rndc`

0 comments on commit 68039b2

Please sign in to comment.