fix postinst
Clay Stan
2 years ago
|
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 |
|
0 | 6 |
rust-zram-generator (0.3.2-1) unstable; urgency=medium
|
1 | 7 |
|
2 | 8 |
* Package zram-generator 0.3.2 from crates.io using debcargo 2.4.4
|
3 | 9 |
|
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
|
2 | 2 |
|
3 | 3 |
case "${1}" in
|
4 | 4 |
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
|
7 | 16 |
;;
|
8 | 17 |
|
9 | 18 |
abort-upgrade|abort-remove|abort-deconfigure)
|