Browse Source

Changes for Garrys Mod

pull/511/head
h3o66 10 years ago
parent
commit
670c164cf5
  1. 42
      functions/fn_getopt

42
functions/fn_getopt

@ -68,6 +68,44 @@ esac
exit
}
fn_getopt_gmodserver(){
case "$getopt" in
start)
fn_start;;
stop)
fn_stop;;
restart)
fn_restart;;
update)
fn_update_check;;
validate)
fn_validate;;
monitor)
fn_monitor;;
email-test)
fn_email_test;;
details)
fn_details;;
backup)
fn_backup;;
console)
fn_console;;
debug)
fn_debug;;
install)
fn_install;;
auto-install)
fn_autoinstall;;
content)
fn_content_gmod;;
*)
echo "Usage: $0 {start|stop|restart|update|validate|monitor|email-test|details|backup|console|debug|install|auto-install|content}"
exit 1;;
esac
exit
}
fn_getopt_unreal(){
case "$getopt" in
start)
@ -178,6 +216,8 @@ elif [ "${engine}" == "unreal2" ]; then
fi
elif [ "${engine}" == "unreal" ]; then
fn_getopt_unreal
elif [ "$gamename" == "Garry's Mod" ]; then
fn_getopt_gmodserver
else
fn_getopt_generic
fi
fi

Loading…
Cancel
Save