mirror of
https://gitdl.cn/https://github.com/chakralinux/core.git
synced 2025-02-05 03:57:15 +08:00
20 lines
353 B
Plaintext
20 lines
353 B
Plaintext
|
# vim:set ft=sh:
|
||
|
run_hook ()
|
||
|
{
|
||
|
# wait for any fbcondecor fadein to finish
|
||
|
for f in /proc/*/cmdline ; do
|
||
|
[ -f ${f} ] || continue
|
||
|
case "$( cat ${f} )" in
|
||
|
*fbcondecor_helper* )
|
||
|
i=60
|
||
|
while [ ${i} -gt 0 -a -e ${f} ]; do
|
||
|
sleep .1
|
||
|
i=$(( ${i} - 1 ))
|
||
|
done
|
||
|
;;
|
||
|
esac
|
||
|
done
|
||
|
# Try resuming with uswsusp
|
||
|
/usr/lib/suspend/resume
|
||
|
}
|