You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
install: Various Asterisk/DAHDI installation improvements.
* install: Target DAHDI 3.4.0.
* install: Actually install res_msp. This module has been present
in the repo but the entry to install it was never added.
* install: Ensure the install_prereq function is run before the package
manager is used for anything else. This prevents the optimization code
of skipping package installation if the package manager was used recently
from preventing these pre-reqs from being installed in the first place.
* Remove DAHDI patches merged and present in DAHDI Linux 3.4.0.
* Streamline/enhance commands for stopping/restarting DAHDI.
* config: Update verify.conf with user variables. This file has
always needed to be updated, but previously we weren't updating it,
requiring the user to manually fix it afterwards.
Resolves: #39
PHREAKSCRIPT-26 #close
PHREAKSCRIPT-27 #close
PHREAKSCRIPT-31 #close
dahdi_undo $1"devtype""Remove struct devtype for unsupported drivers""75620dd9ef6ac746745a1ecab4ef925a5b9e2988"
1315
1330
dahdi_undo $1"wcb""Remove support for all but wcb41xp wcb43xp and wcb23xp.""29cb229cd3f1d252872b7f1924b6e3be941f7ad3"
1316
1331
dahdi_undo $1"wctdm""Remove support for wctdm800, wcaex800, wctdm410, wcaex410.""a66e88e666229092a96d54e5873d4b3ae79b1ce3"
1317
-
dahdi_undo $1"wcte12xp""Remove support for wcte12xp.""3697450317a7bd60bfa7031aad250085928d5c47"
1318
-
dahdi_custom_patch "wcte12xp_base""$1/drivers/dahdi/wcte12xp/base.c""https://raw.githubusercontent.com/InterLinked1/phreakscript/master/patches/wcte12xp_base.diff"# bug fix for case statement fallthrough
1319
-
dahdi_custom_patch "wcte12xp_types""$1/drivers/dahdi/wcte12xp/base.c""https://raw.githubusercontent.com/InterLinked1/phreakscript/master/patches/wcte12xp_types.diff"# bug fix for >= 5.16 stdbool.h
1320
-
dahdi_undo $1"wcte11xp""Remove support for wcte11xp.""3748456d22122cf807b47d5cf6e2ff23183f440d"
1321
-
if [ $DAHDI_MM_VER-lt 33 ];then
1322
-
dahdi_undo $1"wctdm""Remove support for wctdm.""04e759f9c5a6f76ed88bc6ba6446fb0c23c1ff55"
1323
-
fi
1324
-
dahdi_undo $1"wct1xxp""Remove support for wct1xxp.""dade6ac6154b58c4f5b6f178cc09de397359000b"
1325
-
dahdi_undo $1"wcfxo""Remove support for wcfxo.""14198aee8532bbafed2ad1297177f8e0e0f13f50"
1326
1332
1327
1333
# The tor2 and pciradio patches do not revert cleanly on their own. We need to finish it off manually with additional patches:
1328
1334
dahdi_undo_force $1"tor2""Remove support for tor2.""60d058cc7a064b6e07889f76dd9514059c303e0f"
printf"%s %d\n""Starting installation with country code"$AST_CC
2783
+
quell_mysql
2784
+
printf"%s\n""Installing prerequisites..."
2785
+
install_prereq # This must be done before any other packages are installed since we'll skip package install checks if package manager was used recently.
2762
2786
if [ "$DEVMODE"="1" ];then
2763
2787
# Install the Linux headers if we can, but don't abort if we can't.
printf"%s\n""InterLinked API key seems to be of valid format, not displaying for security reasons..."
3406
3425
install_boilerplate
3407
-
## Inject user config (CLLI code, API key)
3408
3426
if [ "$inject"="1" ];then
3427
+
## Inject user config (CLLI code, API key)
3409
3428
sed -i "s/abcdefghijklmnopqrstuvwxyz/$INTERLINKED_APIKEY/g"$AST_CONFIG_DIR/$EXTENSIONS_CONF_FILE
3410
3429
sed -i "s/WWWWXXYYZZZ/$PHREAKNET_CLLI/g"$AST_CONFIG_DIR/$EXTENSIONS_CONF_FILE
3411
3430
sed -i "s/5551111/$PHREAKNET_DISA/g"$AST_CONFIG_DIR/$EXTENSIONS_CONF_FILE
3412
3431
printf"Updated [globals] in %s/extensions.conf with dynamic variables. If globals are stored in a different file, manual updating is required."$AST_CONFIG_DIR
3432
+
## Also update verify.conf
3433
+
sed -i "s/HSTNTXMOCG0/$PHREAKNET_CLLI/g"$AST_CONFIG_DIR/verify.conf
3434
+
sed -i "s/5551111/$PHREAKNET_DISA/g"$AST_CONFIG_DIR/verify.conf
3435
+
printf"Updated %s/verify.conf"$AST_CONFIG_DIR
3413
3436
fi
3414
3437
printf"%s\n""Boilerplate config installed! Note that these files may still require manual editing before use."
0 commit comments