summarylogtreecommitdiffstats
path: root/PulseClient-Arch.patch
blob: 7f05485aa9b3cc5d66698c601db8fdfe543c1dec (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
--- usr/local/pulse/PulseClient_x86_64.sh	2018-04-19 00:33:11.000000000 +0800
+++ usr/local/pulse/PulseClient_x86_64.sh.new	2018-09-07 19:43:27.895493295 +0800
@@ -14,7 +14,7 @@
 
 SCRNAME=`basename $0`
 
-SUPPORTED_OSTYPES_LIST=( CENTOS_6 CENTOS_7 UBUNTU_14 UBUNTU_15 UBUNTU_16_17_18 FEDORA RHEL_7 DEBIAN_8_9 UNSUPPORTED)
+SUPPORTED_OSTYPES_LIST=( ARCH CENTOS_6 CENTOS_7 UBUNTU_14 UBUNTU_15 UBUNTU_16_17_18 FEDORA RHEL_7 DEBIAN_8_9 UNSUPPORTED)
 #RPM Based
 CENTOS_6_DEPENDENCIES=( glibc \
                         nss-softokn-freebl \
@@ -268,6 +268,8 @@
         else
             OS_TYPE=${SUPPORTED_OSTYPES_LIST[$UNSUPPORTED]}
         fi
+    elif [ -f /etc/arch-release ]; then
+        OS_TYPE=${SUPPORTED_OSTYPES_LIST[$ARCH]}
     else 
         OSNAME=$(lsb_release -d | grep -o "Ubuntu")
         if [ "X$OSNAME" != "X" ]; then