Merge pull request #183 from zindello/feat/luckfoxInstallSupport

Fix for polkit version detection
This commit is contained in:
Lloyd
2026-04-18 09:05:12 +01:00
committed by GitHub
+2 -2
View File
@@ -402,7 +402,7 @@ install_repeater() {
# Work out which version of polkit is installed
POLKIT_VERSION=`pkaction --version | awk '{print $NF}'`
if (( $(echo "$POLKIT_VERSION > 0.105"| bc -l) )); then
if [ `echo "$POLKIT_VERSION > 0.105"| bc -l` == '1' ]; then
echo "Polkit 0.106 or greater detected, using rules file"
echo ">>> Configuring polkit for service management..."
mkdir -p /etc/polkit-1/rules.d
@@ -771,7 +771,7 @@ upgrade_repeater() {
# Configure polkit for passwordless service restart
POLKIT_VERSION=`pkaction --version | awk '{print $NF}'`
if (( $(echo "$POLKIT_VERSION > 0.105"| bc -l) )); then
if [ `echo "$POLKIT_VERSION > 0.105"| bc -l` == "1" ]; then
echo "Polkit 0.106 or greater detected, using rules file"
echo ">>> Configuring polkit for service management..."
mkdir -p /etc/polkit-1/rules.d