getopts and some checks in enable_startup_on_boot.sh