diff --git a/Run.sh b/Run.sh index b084d20..60510c1 100755 --- a/Run.sh +++ b/Run.sh @@ -40,14 +40,22 @@ function install() { } function enable() { + UNUFile=$(find $OUTPUT_DIR/System -type f -name "UN*.u" -exec basename {} \;) + UNBaseName="${UNUFile%.*}" + add_ServerPackage $UNBaseName + add_ServerActors $UNBaseName.NewNetServer echo enable ok } function disable() { - + UNUFile=$(find $OUTPUT_DIR/System -type f -name "UN*.u" -exec basename {} \;) + UNBaseName="${UNUFile%.*}" + del_ServerPackage $UNBaseName + del_ServerActors $UNBaseName.NewNetServer + echo disable ok }