481 shaares
1 résultat
taggé
sysvinit
if [[ `systemctl` =~ -\.mount ]]; then echo "SystemD";
elif [[ -f /etc/init.d/cron && ! -h /etc/init.d/cron ]]; then echo using "SysVInit";
else echo "Impossible à dire"; fi
elif [[ -f /etc/init.d/cron && ! -h /etc/init.d/cron ]]; then echo using "SysVInit";
else echo "Impossible à dire"; fi