run a script at shutdown in Debian
I am making use of Debian wheezy. My trouble is, I am making use of a minimal 2.5 GB net link and also would love to record my use prior to closing down. My suggestion is merely running a manuscript as:
#!/bin/bash date >> ~/mydatausage.txt ifconfig -a >> ~/mydatausage.txt
at the time of shutdown.
Just how can I run this manuscript at shutdown, as origin?