summaryrefslogtreecommitdiff
path: root/slackware-bootstrap/multilib
blob: ffb75456fc7ea1ce9d1e4d12944acd855ad243fd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#!/bin/bash

oldpwd=$(pwd)

mkdir /tmp/multilib
cd /tmp/multilib

iscurrent=0
currentstr=$(cat /etc/*-release | grep "VERSION_CODENAME=current")
if [[ $currentstr != "" ]]; then
  iscurrent=1
fi

if [[ $iscurrent == 1 ]]; then
  slpkg --repository="multilib" -i compat32-tools
fi

if [[ $iscurrent == 0 ]]; then
  lftp -c "open http://www.slackware.com/~alien/multilib/ ; mirror -c -e 15.0"
  cd 15.0
  upgradepkg --reinstall --install-new *.t?z
  upgradepkg --install-new slackware64-compat32/*-compat32/*.t?z
fi

cd $oldpwd