mirror of
https://github.com/xcat2/xcat-dep.git
synced 2024-11-21 17:11:45 +00:00
861bf0ecd7
Former-commit-id: 60ac6a4d54f582ec77487be1a8facf56976be00e
17 lines
334 B
Bash
Executable File
17 lines
334 B
Bash
Executable File
#!/bin/bash
|
|
|
|
tar xvfz ipmitool-1.8.11.tar.gz
|
|
cd ipmitool-1.8.11
|
|
cp -rL ../debian .
|
|
HOST_ARCH=`uname -m`
|
|
if [ "$HOST_ARCH" = "ppc64le" ]; then
|
|
HOST_ARCH="ppc64el"
|
|
elif [ "$HOST_ARCH" = "x86_64" ]; then
|
|
HOST_ARCH="amd64"
|
|
else
|
|
HOST_ARCH="amd64"
|
|
fi
|
|
TARGET_ARCH=$HOST_ARCH dpkg-buildpackage -uc -us
|
|
cd -
|
|
rm -rf ipmitool-1.8.11
|