Package: uswsusp
Version: 0.3~cvs20060928-7
Severity: normal
Tags: patch

klibc-utils has no grep. init parses anyway for resume and noresume,
so the result is exported for any hook like uswsusp.
when killing belows grep usage please bump the versioned recommend
of initramfs-tools to 0.91

makes default install work with BUSYBOX=n

thanks


--- uswsusp-0.7/debian/initramfs-tools/scripts/local-premount/uswsusp.orig      
2007-09-21 11:29:10.000000000 +0200
+++ uswsusp-0.7/debian/initramfs-tools/scripts/local-premount/uswsusp   
2007-09-21 11:30:47.000000000 +0200
@@ -21,9 +21,7 @@ prereqs)
        ;;
 esac
 
-grep -q noresume /proc/cmdline 2> /dev/null && exit 0;
-
-grep -q single /proc/cmdline 2> /dev/null && exit 0;
+[ -n "${resume}" ] || exit 0;
 
 [ -x /sbin/resume ] || exit 0;
 

-- System Information:
Debian Release: lenny/sid
  APT prefers testing
  APT policy: (900, 'testing'), (500, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.23-rc5-amd64 (SMP w/2 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages uswsusp depends on:
ii  debconf [debconf-2.0]   1.5.14           Debian configuration management sy
ii  libc6                   2.6.1-1          GNU C Library: Shared libraries
ii  libgcrypt11             1.2.4-2          LGPL Crypto library - runtime libr
ii  libgpg-error0           1.4-2            library for common error values an
ii  zlib1g                  1:1.2.3.3.dfsg-5 compression library - runtime

Versions of packages uswsusp recommends:
ii  initramfs-tools               0.92       tools for generating an initramfs

-- debconf information:
  uswsusp/compute_checksum: false
  uswsusp/no_snapshot:
  uswsusp/suspend_loglevel:
  uswsusp/no_swap:
  uswsusp/early_writeout: true
  uswsusp/image_size: 472558632
  uswsusp/compress: true
  uswsusp/create_RSA_key: false
  uswsusp/snapshot_device:
  uswsusp/RSA_key_file: /etc/uswsusp.key
  uswsusp/max_loglevel:
  uswsusp/resume_device: /dev/mapper/sda2_crypt
  uswsusp/shutdown_method: platform
  uswsusp/encrypt: false
  uswsusp/splash: false
  uswsusp/RSA_key_bits: 1024
  uswsusp/continue_without_swap: true



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to