File tree Expand file tree Collapse file tree 10 files changed +51
-12
lines changed
Expand file tree Collapse file tree 10 files changed +51
-12
lines changed Original file line number Diff line number Diff line change 33 {
44 "name" : " install-acpid.sh" ,
55 "url" : " https://github.com/jumkey/redpill-load/raw/develop/redpill-acpid/src/install-acpid.sh" ,
6- "sha256" : " 5b3e42a3907c00b1dd1ae31363a4ae648b88cda5b18cc39f3601548bb7af6a35 " ,
6+ "sha256" : " 09fb68514f1798af0e3e1bbc51b3169bfc781538d0c6e60843b3b2fbe3a7a8c8 " ,
77 "packed" : false
88 },
99 {
1010 "name" : " acpid.tar.gz" ,
1111 "url" : " https://github.com/jumkey/redpill-load/raw/develop/redpill-acpid/acpid.tar.gz" ,
12- "sha256" : " 2dfb078b54e63802c48393b1f488a4c7303a14c7ee3bd16c7f169e5fca661c73" ,
12+ "sha256" : " 4a635465ff75a5481f2d9aa36fbcf26ff302dc29d2de586a14f1f5b50cf37e0c" ,
13+ "packed" : false
14+ },
15+ {
16+ "name" : " button.tgz" ,
17+ "url" : " https://github.com/jumkey/redpill-load/raw/develop/redpill-acpid/button.tgz" ,
18+ "sha256" : " e8f2eab72236c51c1f708171062e185ffb634872e159c7a74bbe7c3ce1d7b8c3" ,
1319 "packed" : false
1420 }
1521 ],
Original file line number Diff line number Diff line change 99 {
1010 "name" : " acpid_v6.tar.gz" ,
1111 "url" : " https://github.com/jumkey/redpill-load/raw/develop/redpill-acpid/acpid_v6.tar.gz" ,
12- "sha256" : " 4007bbf6b86185e96415ba4dbbb3bed0ab9124bb0a57e43b9ebf21ee260162c7 " ,
12+ "sha256" : " a25fc3068c9ee1b950bd32c16aa432c40b10602fb234f084a7b9780c18c8bcd3 " ,
1313 "packed" : false
1414 }
1515 ],
Original file line number Diff line number Diff line change 11#! /bin/sh
22
3+ SYNOINFO_DEF=" /etc.defaults/synoinfo.conf"
4+ UniqueRD=` /bin/get_key_value $SYNOINFO_DEF unique | cut -d" _" -f2`
5+ # check button.ko
6+ if [ ! -f /tmpRoot/lib/modules/button.ko ]; then
7+ tar -zxvf button.tgz
8+ button_dir=$( uname -r) /$UniqueRD
9+ if [ ! -f " ${button_dir} /button.ko" ]; then
10+ echo " Error: ${button_dir} /button.ko not found, acpid may not work"
11+ else
12+ cp " ${button_dir} /button.ko" /tmpRoot/lib/modules/
13+ fi
14+ fi
15+
316# download files
417# curl -L https://cdn.jsdelivr.net/gh/jumkey/redpill-load@develop/redpill-acpid/acpid.tar.gz -o /tmp/acpid.tar.gz
518
619# copy file
720# tar -zxvf /tmp/acpid.tar.gz -C /
821tar -zxvf acpid.tar.gz -C /tmpRoot/
22+ # install -c -D -m755 acpid -t ${TmpInstDir}/usr/sbin/
23+ chmod 755 /tmpRoot/usr/sbin/acpid
24+
25+ # install config files
26+ # install -c -D -m644 SynoFiles/etc/acpi/events/power ${TmpInstDir}/etc/acpi/events/power
27+ # install -c -D -m744 SynoFiles/etc/acpi/power.sh ${TmpInstDir}/etc/acpi/power.sh
28+ # install -c -D -m744 SynoFiles/systemd/acpid.service ${TmpInstDir}${SYSTEMD_LIB_DIR}/acpid.service
29+ chmod 644 /tmpRoot/etc/acpi/events/power
30+ chmod 744 /tmpRoot/etc/acpi/power.sh
31+ chmod 744 /tmpRoot/usr/lib/systemd/system/acpid.service
932
1033# enable
1134# systemctl enable acpid.service
12- ln -sf /usr/lib/systemd/system/acpid.service /tmpRoot/etc /systemd/system/multi-user.target.wants/acpid.service
35+ ln -sf /usr/lib/systemd/system/acpid.service /tmpRoot/usr/lib /systemd/system/multi-user.target.wants/acpid.service
1336
1437# start
1538# systemctl start acpid.service
Original file line number Diff line number Diff line change 1+ #! /bin/sh
2+
3+ tar --exclude etc/init --owner=root --group=root -czf ../acpid.tar.gz etc usr
4+ tar --owner=root --group=root -czf ../button.tgz -C button 4.4.180+
5+ sha256sum ../acpid.tar.gz
6+ sha256sum ../button.tgz
7+ sha256sum install-acpid.sh
8+ tar --exclude usr/lib --owner=root --group=root -czf ../acpid_v6.tar.gz etc usr
9+ sha256sum ../acpid_v6.tar.gz
10+ sha256sum install-acpid_v6.sh
Original file line number Diff line number Diff line change 11[Unit]
22Description =ACPI Daemon
3- After =network.target
3+ DefaultDependencies =no
4+ IgnoreOnIsolate =true
5+ After =multi-user.target
46
57[Service]
68Type =forking
9+ Restart =always
10+ RestartSec =30
711PIDFile =/var/run/acpid.pid
12+ ExecStartPre =/sbin/modprobe button
813ExecStart =/usr/sbin/acpid
9- ExecReload =/bin/kill -HUP $MAINPID
10- Restart =always
11- TimeoutStopSec =45
12-
13- [Install]
14- WantedBy =multi-user.target
14+ ExecStopPost =/sbin/modprobe -r button
1515
1616[X-Synology]
17- Name =ACPI
17+ Author =Virtualization Team
You can’t perform that action at this time.
0 commit comments