• Minor formatting changes - the scripts should be more readable this way. • Minor comment updates.
24 lines
534 B
Bash
24 lines
534 B
Bash
#!/bin/sh
|
|
|
|
# Grab everything after the '=' sign
|
|
DOWNLOAD_URL=$(grep -i BUSYBOX_SOURCE_URL .config | cut -f2 -d'=')
|
|
|
|
# Grab everything after the last '/'
|
|
ARCHIVE_FILE=${DOWNLOAD_URL##*/}
|
|
|
|
cd source
|
|
|
|
# Downloading busybox source
|
|
# -c option allows the download to resume
|
|
wget -c $DOWNLOAD_URL
|
|
|
|
# Delete folder with previously extracted busybox
|
|
rm -rf ../work/busybox
|
|
mkdir ../work/busybox
|
|
|
|
# Extract busybox to folder 'busybox'
|
|
# Full path will be something like, busybox\busybox-1.22.1
|
|
tar -xvf $ARCHIVE_FILE -C ../work/busybox
|
|
|
|
cd ..
|