Skip to content

Commit

Permalink
install_easy: improve systemd detection
Browse files Browse the repository at this point in the history
  • Loading branch information
bol-van committed Nov 18, 2021
1 parent 49027e1 commit 65165e5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion install_easy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ check_system()
local UNAME=$(uname)
if [ "$UNAME" = "Linux" ]; then
# some distros include systemctl without systemd
if [ -d "$SYSTEMD_DIR" ] && [ -x "$SYSTEMD_DIR/systemd" ] && [ -x "$SYSTEMCTL" ]; then
if [ -d "$SYSTEMD_DIR" ] && [ -x "$SYSTEMCTL" ] && [ "$(basename $(readlink /proc/1/exe))" = "systemd" ]; then
SYSTEM=systemd
elif [ -f "/etc/openwrt_release" ] && exists opkg && exists uci ; then
SYSTEM=openwrt
Expand Down
2 changes: 1 addition & 1 deletion uninstall_easy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ check_system()
local UNAME=$(uname)
if [ "$UNAME" = "Linux" ]; then
# some distros include systemctl without systemd
if [ -d "$SYSTEMD_DIR" ] && [ -x "$SYSTEMD_DIR/systemd" ] && [ -x "$SYSTEMCTL" ]; then
if [ -d "$SYSTEMD_DIR" ] && [ -x "$SYSTEMCTL" ] && [ "$(basename $(readlink /proc/1/exe))" = "systemd" ]; then
SYSTEM=systemd
elif [ -f "/etc/openwrt_release" ] && exists opkg && exists uci ; then
SYSTEM=openwrt
Expand Down

0 comments on commit 65165e5

Please sign in to comment.