summaryrefslogtreecommitdiff
path: root/slackware-bootstrap/multilib
blob: 796bf71145794f03649f980191a9ce9d42c6cf41 (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
26
#!/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 -y 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
touch ~/.multilib-done