Codebase list rust-stfu8 / a0878d0
fix postinst Clay Stan 2 years ago
2 changed file(s) with 18 addition(s) and 3 deletion(s). Raw diff Collapse all Expand all
0 rust-zram-generator (0.3.2-2) UNRELEASED-FIXME-AUTOGENERATED-DEBCARGO; urgency=medium
1
2 * debian/postinst: fix postinst.
3
4 -- Clay Stan <claystan97@gmail.com> Mon, 10 Jan 2022 10:08:34 +0800
5
06 rust-zram-generator (0.3.2-1) unstable; urgency=medium
17
28 * Package zram-generator 0.3.2 from crates.io using debcargo 2.4.4
39
4 -- Clay Stan <claystan97@gmail.com> Thu, 14 Oct 2021 22:52:11 +0200
10 -- Clay Stan <claystan97@gmail.com> Thu, 14 Oct 2021 22:52:11 +020
22
33 case "${1}" in
44 configure)
5 # load kernel module after install
6 test ! -d /sys/module/zram && modprobe zram
5 # load kernel module after install
6 if [ ! -d /sys/module/zram ]; then
7 if [ -d /run/systemd/system ]; then
8 systemctl restart systemd-modules-load.service
9 elif command -v modprobe 2>/dev/null; then
10 modprobe zram
11 else
12 echo "Failed to load the required zram kernel module."
13 echo "Please load manually for zram support."
14 fi
15 fi
716 ;;
817
918 abort-upgrade|abort-remove|abort-deconfigure)