/* setroute.c - Sets the default route for a non-root user

Background: I wrote this for my laptop (many subnets and docking locations)
running Linux so I would not have to su - root every time I dock and change
the default route. Some might consider this a security risk it works for
me however since I am the only user. 

        Kevin P. Inscoe (kevin@inscoe.org) - Aug. 31, 2003

	gcc work.c -o /usr/local/bin/work

	To make this SUID chmod 4755 /usr/local/bin/work

*/

#include <stdlib.h>

 main (void){
  
        execle("/sbin/route","route","add","default",
                "gw","167.208.128.1",NULL,NULL);
}
