diff options
author | yjun | 2020-09-28 13:17:28 +0800 |
---|---|---|
committer | yjun | 2020-09-28 13:17:28 +0800 |
commit | 714eddec5ec7c1757bfcab94c259dedaacdbe1eb (patch) | |
tree | c8d32c1cdf858d5f02ea6829b0e1119835331adb | |
parent | 5e3b9d7825ee56c72b69e28fc16d328f4c30a063 (diff) | |
download | aur-714eddec5ec7c1757bfcab94c259dedaacdbe1eb.tar.gz |
修改systemd-serive,修复开机启动后第一次连接失败的问题
-rw-r--r-- | .SRCINFO | 2 | ||||
-rw-r--r-- | PKGBUILD | 4 |
2 files changed, 4 insertions, 2 deletions
@@ -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 @@ -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" |