OSDN Git Service

[fix] : Fixed templete unit
authorhayao <hayao@fascode.net>
Thu, 26 Aug 2021 05:37:49 +0000 (14:37 +0900)
committerhayao <hayao@fascode.net>
Thu, 26 Aug 2021 05:37:49 +0000 (14:37 +0900)
modules/share/airootfs.any/root/functions.sh

index 16e7c1c..a5a265b 100644 (file)
@@ -103,6 +103,8 @@ _safe_systemctl(){
             else
                 systemctl "${_command}" "${_service}"
             fi
+        elif echo "${_service}" | grep -q "@"; then
+             _safe_systemctl "${_command}" "$(echo "${_service}" | cut -d "@" -f 1)"
         else
             echo "${_service} was not found" >&2
         fi