Add shutdown script, courtesy of Tomato