Skip to content

Commit 582b11f

Browse files
committed
install: Verify that dahdi_tool is built.
1 parent 954bd7d commit 582b11f

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

phreaknet.sh

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1876,6 +1876,13 @@ install_dahdi() {
18761876
cp tonezone.h /usr/include/dahdi
18771877
fi
18781878

1879+
# Ensure that dahdi_tool is installed, since it's not built if the prereqs weren't available at compile time.
1880+
if ! which "dahdi_tool" > /dev/null; then
1881+
if [ "$FORCE_INSTALL" != "1" ]; then
1882+
die "dahdi_tool was not installed successfully"
1883+
fi
1884+
fi
1885+
18791886
# All right, here we go...
18801887
dahdi_scan -vvvvv
18811888
if [ ! -f /etc/dahdi/system.conf ]; then

0 commit comments

Comments
 (0)