summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGerardo Exequiel Pozzi <vmlinuz386@yahoo.com.ar>2011-11-16 06:37:39 +0100
committerDave Reisner <dreisner@archlinux.org>2011-11-29 11:56:41 +0100
commitaf8d88d502b31623414e766d527b71fb062e1f52 (patch)
treefbe800631753de000d4746ebda5658dd855081fd
parentd61dcfb95be58e17a4a84f229d0bf594841adecc (diff)
downloadmkinitcpio-af8d88d502b31623414e766d527b71fb062e1f52.tar.gz
mkinitcpio-af8d88d502b31623414e766d527b71fb062e1f52.tar.xz
hooks/resume: Remove cut cmd usage
Signed-off-by: Gerardo Exequiel Pozzi <vmlinuz386@yahoo.com.ar>
-rw-r--r--hooks/resume3
1 files changed, 2 insertions, 1 deletions
diff --git a/hooks/resume b/hooks/resume
index e216f42..2079e05 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}"