mirror of
https://gitee.com/amber-ce/amber-pm
synced 2026-03-25 15:09:48 +08:00
src update
This commit is contained in:
30
src/DEBIAN/postinst
Executable file
30
src/DEBIAN/postinst
Executable file
@@ -0,0 +1,30 @@
|
||||
#!/bin/bash
|
||||
export PACKAGE_NAME="$DPKG_MAINTSCRIPT_PACKAGE"
|
||||
|
||||
|
||||
case "$1" in
|
||||
configure)
|
||||
/var/lib/apm/$PACKAGE_NAME/files/bin/ace-init
|
||||
systemctl daemon-reload
|
||||
systemctl enable gxde-apm-fixer
|
||||
systemctl enable apm-daily-update
|
||||
systemctl start gxde-apm-fixer
|
||||
systemctl start apm-daily-update
|
||||
|
||||
if [ -f /usr/lib/sysctl.d/apm.conf ];then
|
||||
sysctl -p /usr/lib/sysctl.d/apm.conf
|
||||
fi
|
||||
|
||||
|
||||
;;
|
||||
triggered)
|
||||
amber-pm-configure-nvidia-host
|
||||
amber-pm-dstore-patch
|
||||
|
||||
;;
|
||||
esac
|
||||
|
||||
|
||||
|
||||
|
||||
true
|
||||
Reference in New Issue
Block a user