Skip to content

Commit 7d2f3c7

Browse files
authored
Minor wanpipe cleanup (#40)
- Fixed removal of wanpipe.tgz file. - Removed logic to symlink to proper version.h file, seems Sangoma fixed this at some point in the last 6 months.
1 parent df596c9 commit 7d2f3c7

File tree

1 file changed

+1
-15
lines changed

1 file changed

+1
-15
lines changed

phreaknet.sh

Lines changed: 1 addition & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1661,23 +1661,9 @@ install_wanpipe() {
16611661
if [ $? -ne 0 ]; then
16621662
die "Failed to download/extract wanpipe"
16631663
fi
1664-
rm ${WANPIPE_SOURCE_NAME}.tgz
1664+
rm ${AST_SOURCE_PARENT_DIR}/${WANPIPE_SOURCE_NAME}.tgz
16651665
#phreak_fuzzy_patch "af_wanpipe.diff"
16661666

1667-
if [ ! -f "$MYINCLUDEDIR/linux/version.h" ]; then
1668-
echoerr "File $MYINCLUDEDIR/linux/version.h does not exist, trying to symlink file $MYINCLUDEDIR/generated/uapi/linux/version.h\n"
1669-
if [ -f "$MYINCLUDEDIR/generated/uapi/linux/version.h" ]; then
1670-
ln -s ${MYINCLUDEDIR}/generated/uapi/linux/version.h ${MYINCLUDEDIR}/linux/version.h
1671-
if [ $? -ne 0 ]; then
1672-
echoerr "symlink failed: wanpipe utilities may not be installed\n"
1673-
else
1674-
printf "symlink successful: created file $MYINCLUDEDIR/linux/version.h\n"
1675-
fi
1676-
else
1677-
echoerr "File $MYINCLUDEDIR/generated/uapi/linux/version.h does not exist, wanpipe utilities may not be installed\n"
1678-
fi
1679-
fi
1680-
16811667
./Setup dahdi --silent
16821668

16831669
if [ $? -ne 0 ]; then

0 commit comments

Comments
 (0)