The wanpipe-7.0.14 package
refused to compile against my kernel version 3.16.7-ckt11-1
and using
DAHDI built from the contents of the
repo:
apt-get install \
libpri1.4 \
asterisk-dahdi \
#!/bin/bash | |
### VARIABLES ### \ | |
EMAIL="" | |
SERVER=$(hostname) | |
MYSQL_CHECK=$(mysql -e "SHOW VARIABLES LIKE '%version%';" || echo 1) | |
LAST_ERRNO=$(/usr/bin/mysql -e "SHOW SLAVE STATUS\G" | grep "Last_Errno" | awk '{ print $2 }') | |
SECONDS_BEHIND_MASTER=$(/usr/bin/mysql -e "SHOW SLAVE STATUS\G"| grep "Seconds_Behind_Master" | awk '{ print $2 }') | |
IO_IS_RUNNING=$(/usr/bin/mysql -e "SHOW SLAVE STATUS\G" | grep "Slave_IO_Running" | awk '{ print $2 }') | |
SQL_IS_RUNNING=$(/usr/bin/mysql -e "SHOW SLAVE STATUS\G" | grep "Slave_SQL_Running" | awk '{ print $2 }') |
#!/bin/bash | |
# Script to auto-repair MySQL replication slave synch-loss | |
# by: Daniel de Segovia Gross ([email protected]) | |
# v1.0 07 Mar 2017 | |
# Copyright 2017 Hubrix SAS. https://www.hubrix.co/ | |
# License: MIT (see https://opensource.org/licenses/MIT) | |
# USE AT YOUR OWN RISK. Don't be a copy+paste victim! | |
# If you don't understand this script, you should NOT use it. | |
# It is intended to save you time, not replace your brain. | |
# |
# Installing optional utilities | |
yum -y install vim # advanced text editor | |
yum -y install sed # stream editor | |
yum -y install awk # line editor | |
yum -y install wget # downloads using http protocol | |
yum -y install pciutils | |
yum -y install net-tools | |
yum -y install patch bison flex | |
# Install Compiling tools | |
yum install -y gcc # GNU C compiler |
The wanpipe-7.0.14 package
refused to compile against my kernel version 3.16.7-ckt11-1
and using
DAHDI built from the contents of the
repo:
apt-get install \
libpri1.4 \
asterisk-dahdi \
#!/bin/bash | |
DA='dahdi-linux-complete-2.5.0.1+2.5.0.1' | |
WAN="wanpipe-3.5.23" | |
PRI="libpri-1.4.12" | |
apt-get -y install build-essential | |
apt-get -y install gcc | |
apt-get -y install g++ | |
apt-get -y install automake |
apt-get update
apt-get install -y build-essential flex bison libreadline-dev libssl-dev gettext libtiff-dev uuid-dev libjansson-dev libxml2-dev libsqlite3-dev doxygen libncurses-dev libtool automake autoconf linux-headers-4.9.0-4-amd64 linux-headers-4.9.0-4-common linux-kbuild-4.9 wget vim