Commit bab2d737 authored by Lucas Russo's avatar Lucas Russo

scripts/get-init-system.sh: throw away error from upstart checking

parent 08914f82
......@@ -3,7 +3,9 @@
# Based from the stackexchange answer
# http://unix.stackexchange.com/questions/18209/detect-init-system-using-the-shell
if [[ `/sbin/init --version` =~ upstart ]]; then
IS_UPSTART=$(/sbin/init --version 2> /dev/null)
if [[ ${IS_UPSTART} =~ upstart ]]; then
echo "upstart";
elif [[ `systemctl` =~ -\.mount ]]; then
echo "systemd";
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment