rendered paste body#!/bin/shclearoptionstart=optionstartwoutnet=optionstop=optionhelp=while getopts :abch namedocase $name ina) optionstart=1;;b) optionstartwoutnet=1;;c) optionstop=1;;h) optionhelp=1;;?) echo "Usage: $0: options | -h (for options)"echoexit 2;;esacdoneif [ ! -z "$optionhelp" ]; thenprintf "Usage: %s [option] \n" $0echo "options:"echo "[-a] to start"echo "[-b] to start without Network"echo "[-c] to stop"echo "[-h] for this help"fiif [ ! -z "$optionstart" ]; thenecho "Apache und Mysql werden gestartet!"sudo /etc/init.d/apache2 startsudo /etc/init.d/mysql startfiif [ ! -z "$optionstartwoutnet" ]; thenecho "Apache und Mysql werden gestartet!"sudo /sbin/ifconfig eth0 upsudo /etc/init.d/apache2 startsudo /etc/init.d/mysql startfiif [ ! -z "$optionstop" ]; thenecho "Apache und Mysql werden beendet!"sudo /etc/init.d/apache2 stopsudo /etc/init.d/mysql stopfi