home *** CD-ROM | disk | FTP | other *** search
/ Clickx 115 / Clickx 115.iso / software / tools / windows / tails-i386-0.16.iso / live / filesystem.squashfs / usr / local / bin / tails-boot-to-kexec < prev    next >
Encoding:
Text File  |  2013-01-06  |  534 b   |  30 lines

  1. #!/bin/sh
  2.  
  3. running_pae_kernel() {
  4.    uname -r | grep -qs '686-pae$'
  5. }
  6.  
  7. case "$1" in
  8.    kernel)
  9.       boot_kernel="$2"
  10.       if running_pae_kernel ; then
  11.          echo "$boot_kernel" | sed -e 's,/vmlinuz$,/vmlinuz2,'
  12.       else
  13.          echo "$boot_kernel"
  14.       fi
  15.       ;;
  16.    initrd)
  17.       boot_initrd="$2"
  18.       if running_pae_kernel ; then
  19.          echo "$boot_initrd" | sed -e 's,/initrd\.img$,/initrd2.img,'
  20.       else
  21.          echo "$boot_initrd"
  22.       fi
  23.       ;;
  24.    *)
  25.       usage "$0 kernel|initrd"
  26.       exit 3
  27. esac
  28.  
  29. exit 0
  30.