15 lines
362 B
Bash
Executable File
15 lines
362 B
Bash
Executable File
#!/bin/bash
|
|
|
|
# Automatically determine the architecture we're building on:
|
|
if [ -z "$MYARCH" ]; then
|
|
case "$( uname -m )" in
|
|
i?86) export MYARCH=i486 ;;
|
|
arm*) export MYARCH=arm ;;
|
|
# Unless $MYARCH is already set, use uname -m for all other archs:
|
|
*) export MYARCH=$( uname -m ) ;;
|
|
esac
|
|
fi
|
|
|
|
ln busybox-$MYARCH ./busybox
|
|
chmod a+x ./busybox
|