16 Nov
2011
16 Nov
'11
6:38 a.m.
Signed-off-by: Gerardo Exequiel Pozzi <vmlinuz386@yahoo.com.ar> --- hooks/resume | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/hooks/resume b/hooks/resume index e216f42..bff0f87 100644 --- a/hooks/resume +++ b/hooks/resume @@ -4,7 +4,8 @@ run_hook () if [ -n "${resume}" ]; then if [ "${resume}" != "${resume/:}" ]; then # Tux-on-ice syntax: swap:/dev/sda2 or file:/dev/sda2:0xdeadbeef - resumedev="$(echo ${resume} | cut -d: -f2)" + resumedev=${resume#*:} + resumedev=${resumedev%:*} else # Classical syntax: just a device resumedev="${resume}" -- 1.7.7.3