summaryrefslogtreecommitdiff
path: root/pcr/debootstrap-libre/debootstrap.install
blob: 3da2f1d22d06e3c871248d8fb95bfdf106bb23fa (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
post_install() {
  if [ "$(uname -m)" = "x86_64" ]; then
    darch="amd64"
  elif [ "$(uname -m)" = "i686" ]; then
    darch="i386"
  else
    darch="mips64el"
  fi
  echo "$darch" > /usr/share/debootstrap/arch
}

pre_remove() {
  rm -f /usr/share/debootstrap/arch
}