Yes, thank you,bellowing is my ramdisk.sh
Code:
root@laptop:~# cat /etc/pm/sleep.d/ramdisk.sh
#!/bin/bash
case "${1}" in
hibernate)
# command to disable ramdisk
swapoff /dev/zram0
umount /dev/zram0
echo 1 > /sys/block/zram0/reset
;;
thaw)
# command to re-enable ramdisk
/etc/init.d/wicd restart
;;
esac
root@laptop:~#
I have two questions, one is how to re-activate the ramdisk, and another is : After resuming, the OS is unlocked, this is a great security concern.
Could I add some command in the ramdisk.sh, so automatically lock the screen for security?
Bookmarks