bootsector / dpkg

Kjetil Torgrim Homme kjetilho at linpro.no
Wed Jun 12 16:43:24 CEST 2002


John Bazik <jsb at cs.brown.edu> writes:

> % diff -u bootsector.orig bootsector
> -arch=`dpkg --print-installation-architecture`
> -[ "$arch" = "i386" ] || {
> -    Currently, only i386 architecure is supported.
> +arch=`uname -m | cut -c 1,3-`
> +[ "$arch" = "i86" ] || {
> +    Currently, only i386 architecture is supported.
>      exit 1
>  }

: [kjetilho at groucho ~]; uname -m
i686

I suggest you use something like this instead:

  case $(uname -m) in
        i*86)   arch=i86 ;;
        *)      echo "Currently, only x86 architecture is supported" ;;
  esac

(why was the echo missing?)


Kjetil T.



More information about the linux-fai mailing list