X-Git-Url: http://ftp.carnet.hr/carnet-debian/scm?a=blobdiff_plain;f=debian%2Fpostinst;h=093c6137d00652478e26f350a23a9457ad464273;hb=9f007357adc5610f7c392bc6fdb19004b476342e;hp=547ddadaccf2a138c83a52b85dd98cdb4124f20b;hpb=843c8466e5fd7f20c6bcc6d0fc46a874955692f7;p=kernel-cn.git diff --git a/debian/postinst b/debian/postinst index 547ddad..093c613 100755 --- a/debian/postinst +++ b/debian/postinst @@ -173,11 +173,14 @@ if [ ! -s "$device_map" ]; then mv -f "$device_map.old" "$device_map" fi -:q!else +else rm -f "$device_map.old" fi echo -n " grub4" +# import GRUB helper functions (again, updated device map) +. /usr/share/kernel-2.6-cn/grub-functions.sh + # get install device (0x80 BIOS device) install_device=$(grep '^(hd0)' "$device_map" | \ sed -e 's%[^[:space:]]*[[:space:]]*\([^[:space:]]*\)%\1%')