Skip to content

Commit d39ef3e

Browse files
add systemctl scripts #2
1 parent 7bba1bf commit d39ef3e

File tree

2 files changed

+6501
-0
lines changed

2 files changed

+6501
-0
lines changed

scripts/systemctl/install.sh

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
#!/usr/bin/env bash
2+
3+
# sudo check
4+
if [ "$EUID" -ne 0 ]
5+
then echo "Please run as root"
6+
exit
7+
fi
8+
9+
if command -v python3 &>/dev/null; then
10+
echo "Python3 is already installed"
11+
else
12+
echo "Installing Python3"
13+
pacman -Syu
14+
pacman -S python3
15+
fi
16+
17+
if [ -f /bin/systemctl ]; then
18+
echo "installing systemctl -> /bin/systemctl"
19+
cat systemctl > /bin/systemctl
20+
echo "Done..."
21+
fi

0 commit comments

Comments
 (0)