home *** CD-ROM | disk | FTP | other *** search
/ Clickx 115 / Clickx 115.iso / software / tools / windows / tails-i386-0.16.iso / live / filesystem.squashfs / usr / share / bug / linux-image-3.2.0-4-686-pae / script < prev   
Encoding:
Text File  |  2012-06-03  |  451 b   |  27 lines

  1. #!/bin/bash
  2. set -e
  3.  
  4. PATH=/sbin:/bin:/usr/sbin:/usr/bin
  5.  
  6. dir="$(dirname $0)"
  7.  
  8. . "$dir"/info
  9.  
  10. for file in "$dir"/include-*; do
  11.   name="$(echo $file | sed -e 's,^.*/include-,,')"
  12.   hooks+=($name)
  13.   . "$file"
  14. done
  15.  
  16. if [ "$RELEASE" == "$(uname -r)" ]; then
  17.   for hook in ${hooks[@]}; do
  18.     add_$hook
  19.   done
  20. else
  21.   yesno "Does the bug you are reporting affect this computer? " yep
  22.   same_system=$REPLY
  23.   for hook in ${hooks[@]}; do
  24.     ask_$hook
  25.   done
  26. fi
  27.