mirror of
https://github.com/wassname/thinkpad-x380-yoga-scripts.git
synced 2026-09-10 12:44:13 +08:00
Added install
This commit is contained in:
@@ -3,7 +3,7 @@
|
||||
pkgname='thinkpad-yoga-scripts-git'
|
||||
_gitname='thinkpad-yoga-scripts'
|
||||
pkgver=20150103
|
||||
pkgrel=1
|
||||
pkgrel=2
|
||||
pkgdesc='A collection of scripts and systemd services for tablet functionality of the ThinkPad Yoga'
|
||||
url="https://github.com/admiralakber/thinkpad-yoga-scripts"
|
||||
source=('thinkpad-yoga-scripts::git+https://github.com/admiralakber/thinkpad-yoga-scripts')
|
||||
@@ -16,6 +16,8 @@ optdepends=(
|
||||
)
|
||||
md5sums=('SKIP')
|
||||
makedepends=('git')
|
||||
install=$pkgname.install
|
||||
|
||||
pkgver() {
|
||||
cd "$_gitname"
|
||||
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
|
||||
|
||||
@@ -8,6 +8,8 @@ ExecStart=/usr/bin/bash /opt/thinkpad-yoga-scripts/tablet/tablet-mode.sh
|
||||
KillMode=process
|
||||
Environment="DISPLAY=:0"
|
||||
Type=forking
|
||||
Restart=on-failure
|
||||
RestartSec=5
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
@@ -0,0 +1,16 @@
|
||||
_note_services(){
|
||||
echo '(Re)start services now!'
|
||||
echo ''
|
||||
echo 'To enable starting of services at startup run:'
|
||||
echo '----------------------------------------------'
|
||||
echo 'systemctl enable wacom-proximity@<username>.service'
|
||||
echo 'systemctl enable yoga-rotate@<username>.service'
|
||||
echo 'systemctl enable yoga-tablet.service'
|
||||
echo ''
|
||||
echo 'Where <username> is your login username'
|
||||
|
||||
post_install(){
|
||||
_note_services
|
||||
|
||||
post_upgrade(){
|
||||
_note_services
|
||||
Reference in New Issue
Block a user