scrypte for enabling hotspot

hi i need a script to disable hotspot on start up then disabling an ip address on one of the ehernet and finaly enable the hotspot and then enabling that ip address.
can any body help me with that