mirror of
https://github.com/ericonr/dotfiles.git
synced 2024-04-21 09:12:33 -05:00
12 lines
190 B
Bash
Executable File
12 lines
190 B
Bash
Executable File
#!/bin/sh
|
|
|
|
# ericonr's script for system tasks
|
|
|
|
# detect session manager;
|
|
# systemd -> systemctl
|
|
# non-systemd -> loginctl
|
|
CTL=loginctl
|
|
command -v systemctl && CTL=systemctl
|
|
|
|
exec $CTL "$@"
|