Skip to content

Commit

Permalink
add systemctl scripts #2
Browse files Browse the repository at this point in the history
  • Loading branch information
SaicharanKandukuri committed Nov 30, 2021
1 parent 7bba1bf commit d39ef3e
Show file tree
Hide file tree
Showing 2 changed files with 6,501 additions and 0 deletions.
21 changes: 21 additions & 0 deletions scripts/systemctl/install.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
#!/usr/bin/env bash

# sudo check
if [ "$EUID" -ne 0 ]
then echo "Please run as root"
exit
fi

if command -v python3 &>/dev/null; then
echo "Python3 is already installed"
else
echo "Installing Python3"
pacman -Syu
pacman -S python3
fi

if [ -f /bin/systemctl ]; then
echo "installing systemctl -> /bin/systemctl"
cat systemctl > /bin/systemctl
echo "Done..."
fi
Loading

0 comments on commit d39ef3e

Please sign in to comment.