Changeset 1616
- Timestamp:
- 06/01/06 23:46:51 (3 years ago)
- Files:
-
- trunk/patches/install.sh (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/patches/install.sh
r1603 r1616 7 7 8 8 set -e 9 10 die() 11 { 12 echo "FATAL ERROR: $1" >&2 13 exit 1 14 } 9 15 10 16 DEPTH=.. … … 18 24 KERNEL_PATH="/lib/modules/${KERNEL_VERSION}/build" 19 25 else 20 echo "Cannot guess kernel source location" 21 exit 1 26 die "Cannot guess kernel source location" 22 27 fi 23 28 fi … … 50 55 # 51 56 SRC_HAL=${HAL:-${DEPTH}/hal} 52 test -d ${SRC_HAL} || { echo "No hal directory ${SRC_HAL}!"; exit 1; }57 test -d ${SRC_HAL} || die "No hal directory ${SRC_HAL}" 53 58 SRC_NET80211=${WLAN:-${DEPTH}/net80211} 54 test -d ${SRC_NET80211} || 55 { echo "No net80211 directory ${SRC_NET80211}!"; exit 1; } 59 test -d ${SRC_NET80211} || die "No net80211 directory ${SRC_NET80211}" 56 60 SRC_ATH=${ATH:-${DEPTH}/ath} 57 test -d ${SRC_ATH} || { echo "No ath directory ${SRC_ATH}!"; exit 1; }61 test -d ${SRC_ATH} || die "No ath directory ${SRC_ATH}" 58 62 SRC_ATH_RATE=${DEPTH}/ath_rate 59 63 test -d ${SRC_ATH_RATE} || 60 { echo "No rate control algorithm directory ${SRC_ATH_RATE}!"; exit 1; }64 die "No rate control algorithm directory ${SRC_ATH_RATE}" 61 65 SRC_COMPAT=${DEPTH}/include 62 test -d ${SRC_COMPAT} || { echo "No compat directory ${SRC_COMPAT}!"; exit 1; }66 test -d ${SRC_COMPAT} || die "No compat directory ${SRC_COMPAT}" 63 67 64 68 WIRELESS=${KERNEL_PATH}/drivers/net/wireless 65 test -d ${WIRELESS} || { echo "No wireless directory ${WIRELESS}!"; exit 1; }69 test -d ${WIRELESS} || die "No wireless directory ${WIRELESS}" 66 70 67 71 if test -f ${WIRELESS}/Kconfig; then … … 72 76 kbuildconf=Config.in 73 77 else 74 echo "Kernel build system is not supported" 75 echo 1 78 die "Kernel build system is not supported" 76 79 fi 77 80 fi
