Some misc changes for initial android usage

This commit is contained in:
Martinvlba 2024-06-09 16:54:51 +03:00
parent 8dcd6303ef
commit a287c22530

View File

@ -4,7 +4,7 @@
# #
# Pach systemd services file # Pach systemd services file
SYSTEMD_UNITS_PATH="/usr/lib/systemd/system/" SYSTEMD_UNITS_PATH="@PREFIX@/lib/systemd/system/"
# Path locate this script # Path locate this script
DIR=$(dirname $(readlink -f $0)) DIR=$(dirname $(readlink -f $0))
@ -12,12 +12,6 @@ DIR=$(dirname $(readlink -f $0))
# Path contents symlink on systemd units files # Path contents symlink on systemd units files
SERVICECTL_ENABLED_PATH="$DIR/enabled/" SERVICECTL_ENABLED_PATH="$DIR/enabled/"
# Check is root
if [ $EUID -ne 0 ]; then
echo "You must run as root user" 2>&1
exit 1
fi
# Parse ini file. usage: parse $inifile $section $key # Parse ini file. usage: parse $inifile $section $key
# Return 0 on success, 1 if file cannot be opened, 2 if the given key cannot be found in the given section # Return 0 on success, 1 if file cannot be opened, 2 if the given key cannot be found in the given section
function parse() function parse()