summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authoryjun2020-09-28 13:17:28 +0800
committeryjun2020-09-28 13:17:28 +0800
commit714eddec5ec7c1757bfcab94c259dedaacdbe1eb (patch)
treec8d32c1cdf858d5f02ea6829b0e1119835331adb
parent5e3b9d7825ee56c72b69e28fc16d328f4c30a063 (diff)
downloadaur-714eddec5ec7c1757bfcab94c259dedaacdbe1eb.tar.gz
修改systemd-serive,修复开机启动后第一次连接失败的问题
-rw-r--r--.SRCINFO2
-rw-r--r--PKGBUILD4
2 files changed, 4 insertions, 2 deletions
diff --git a/.SRCINFO b/.SRCINFO
index ef97b3540cc6..e6d8e71049ea 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,7 +1,7 @@
pkgbase = sunloginclient
pkgdesc = Sunlogin Remote Control is a software that supports remote control of mobile devices, Windows, Mac, Linux and other systems.(GUI version)
pkgver = 10.1.1.38139
- pkgrel = 2
+ pkgrel = 3
url = https://sunlogin.oray.com
install = .INSTALL
arch = x86_64
diff --git a/PKGBUILD b/PKGBUILD
index c0cac11428d2..4b057587bf60 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -2,7 +2,7 @@
pkgname=sunloginclient
pkgver=10.1.1.38139
-pkgrel=2
+pkgrel=3
pkgdesc="Sunlogin Remote Control is a software that supports remote control of mobile devices, Windows, Mac, Linux and other systems.(GUI version)"
arch=("x86_64")
url="https://sunlogin.oray.com"
@@ -44,6 +44,8 @@ package() {
# 修改路径
sed -i 's#/usr/local/#/opt/#g' "${pkgdir}/opt/sunlogin/etc/watch.sh"
sed -i "s#/usr/local/#/opt/#g" "${pkgdir}/usr/lib/systemd/system/runsunloginclient.service"
+ # 修复开机启动后第一次连接失败的问题
+ sed -i '2a\Requires=network-online.target\nAfter=network-online.target' "${pkgdir}/usr/lib/systemd/system/runsunloginclient.service"
sed -i 's#Exec=/usr/local/sunlogin/#Exec=/usr/#g' "${pkgdir}/usr/share/applications/sunlogin.desktop"
sed -i 's#Icon=/usr/local/sunlogin/res/icon/sunlogin_client.png#Icon=sunlogin_client#g' "${pkgdir}/usr/share/applications/sunlogin.desktop"