Posted June 5, 2012on:
it is a startup script for the local machine so you can do many useful things here. the easiest way is to have it call another script which you can check into the source depot.
this link explains more on what you should pay attention to when you write the script — for example always use absolute path since it will be run from the caller’s directory.
this thread explains that no need to enable rc.local service any more systemd picks it up automatically on reboot.