File: grub

package info (click to toggle)
cruft 0.9.16
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 1,308 kB
  • sloc: ansic: 803; perl: 315; sh: 178; makefile: 61
file content (8 lines) | stat: -rwxr-xr-x 305 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
#!/bin/dash
d=/boot/grub
set -e
if [ ! -d "$d" ]; then d=/boot/boot/grub; fi
if [ ! -d "$d" ]; then exit 1; fi
if [ "$d" = "/boot/boot/grub" ]; then echo /boot/boot; fi
echo $d
find $d -type f -name stage1 -or -name stage2 -or -name \*_stage1_5 -or -name device.map -or -name menu.lst\* -or -name default