Unique sort of systemctl unit files

This commit is contained in:
Michael Boelen 2017-02-14 20:15:00 +01:00
parent 38af9121ea
commit f7478bc9e0
1 changed files with 1 additions and 1 deletions

View File

@ -546,7 +546,7 @@
# Services at boot # Services at boot
LogText "Searching for enabled services (systemctl services only)" LogText "Searching for enabled services (systemctl services only)"
FIND=$(${SYSTEMCTLBINARY} list-unit-files --type=service | ${AWKBINARY} '{ if ($2=="enabled") { print $1 } }' | ${AWKBINARY} -F. '{ print $1 }') FIND=$(${SYSTEMCTLBINARY} list-unit-files --type=service | ${SORTBINARY} -u | ${AWKBINARY} '{ if ($2=="enabled") { print $1 } }' | ${AWKBINARY} -F. '{ print $1 }')
N=0 N=0
Report "boot_service_tool=systemctl" Report "boot_service_tool=systemctl"
for I in ${FIND}; do for I in ${FIND}; do