|
The install process for EchoIRLP makes some modifications to a couple of the core IRLP files and also creates and populates several directories with it's binaries and configuration files. By reversing the modifications made by the EchoIRLP installer, and removing the EchoIRLP support files, you can bring your node back to it's original (pure IRLP) state. During the install of EchoIRLP, the following files were modified:
- /home/irlp/custom/rc.irlp
The following code is added:
# source the EchoIRLP env
if [ -f /home/EchoIRLP/custom/echo_environment ] ; then
. /home/EchoIRLP/custom/echo_environment
fi
echo "Starting the Bridge..."
if ps -A | egrep 'tbd$' > /dev/null 2>&1; then
/etc/init.d/theBridge restart
else
/etc/init.d/theBridge start
fi
if [ -x "$ECHO_SCRIPT/echo_enable" ] ; then
echo -n "Enabling connections to the EchoLink Node..."
/bin/su - -c "$ECHO_SCRIPT/echo_enable" repeater &>/dev/null
echo "done!"
fi
The relavent EchoIRLP code in your rc.irlp file may differ somewhat from the above but it should be apparent what code was added by your version of the EchoIRLP installer script. Before you start modifying it, make a backup of your current rc.irlp file! Once you've done that, you can proceed with manually removing the EchoIRLP code within it. Any stanzas referring to echo_environment, EchoIRLP, tbd, theBridge, echo_enable, $ECHO_SCRIPT, etc. were added by the EchoIRLP installer and need to be removed. Since the installer probably made a backup of your rc.irlp file before it modified it, you should be able to find and compare that backed up version with the current one to see what was added. Just keep in mind that some other add-ons may have also modified your rc.irlp file since you installed EchoIRLP so you shouldn't just copy that backed up version over the current one. If you do, you risk breaking the other add-ons which may rely on the changes they made to it. The backup file for my rc.irlp is named, "rc.irlp.bak" and is located within the /home/irlp/custom directory. Yours is probably similar unless you changed or removed it. By comparing the current version to the backup, it should be obvious which things were added by the EchoIRLP installer. If you can't find a backed up version of your rc.irlp file for whatever reason, you'll just have to carefully go through and remove all traces of the EchoIRLP code. Luckily it's fairly easy to spot and it's usually at or near the end of the file since the changes simply get appended to the end during the EchoIRLP install process.
- /home/irlp/custom/custom_decode
The following code is added:
# If you change the EchoIRLP prefix, you must also change "num" below to the number of digits in the prefix.
eval `echo $1 | awk -v num=1 '{
print "PRE="substr($1,1,num);
print "NODE="substr($1,(num)+1,length($1))}'`
# call echolink conferences using pound node method
if [ "$PRE" = "P" ]; then
"$ECHO_SCRIPT"/echo_call $NODE &
exit 1
fi
The relavent EchoIRLP code in your custom_decode file should be very similar to the above. Again, before you start modifying it, make a backup of your current custom_decode file! Once you've done that, you can proceed with manually removing the EchoIRLP code within it. Any stanzas referring to EchoIRLP, $ECHO_SCRIPT, echo_call, etc. need to be removed. The additions made by the EchoIRLP installer will probably be near the bottom of the file unless you have added lots of things to your custom_decode file since installing EchoIRLP.
- /home/irlp/custom/custom_on
- /home/irlp/custom/custom_off
The following code is added:
# Added for EchoIRLP status page update
if [ -x "$ECHO_SCRIPT/echo_status" ] ; then
"$ECHO_SCRIPT/echo_status"
fi
Remove that code from both of the custom_on and custom_off files.
- /home/irlp/custom/environment
The environment file will have an entry similar to the following, probably at or near the bottom of the file:
if [ -x /home/EchoIRLP/custom/echo_environment ] ; then
source /home/EchoIRLP/custom/echo_environment
fi
That code should be removed from the environment file as it will no longer be applicable.
You will also need to remove EchoIRLP's config from the applicable boot-up runlevel(s). To do this, issue the following commands as root:
1. /etc/init.d/tbd stop (or for Ubuntu do, "/etc/init.d/theBridge stop") - this will stop the EchoIRLP process
2. chkconfig --del tbd (or for Ubuntu do, "update-rc.d -f theBridge remove") - this will remove the system startup links to the EchoIRLP software
Now proceed with these final steps to completely remove EchoIRLP from your IRLP node:
Completely remove the /home/EchoIRLP/ directory.
This directory contains most of the core EchoIRLP files. This directory in it's entirety can safely be removed.
Remove the /etc/init.d/tbd or /etc/init.d/thebridge init script. (depending on whether it's Ubuntu)
It will probably be named, "tbd" but for Ubuntu installs, it will probably be, "theBridge." Basically you just want to locate the init script for theBridge and make sure it's been removed.
Remove the tbd.conf and tbd.conf.sample files from the /usr/local/etc/ directory.
More than likely they will be the only files in /usr/local/etc/. Simply delete them.
Remove all tbd* files from the /usr/local/bin/ directory.
These are mostly symbolic links to the actual files that were located in the /home/EchoIRLP/tbd/ directory but since we removed the /home/EchoIRLP/ directory altogether, these are now broken sym-links and should be removed for completeness.
Remove any thebridge and tbdcnv files and directories from the /usr/src/ directory.
The EchoIRLP build process leaves some of these files in the /usr/src/ directory. They should be removed.
That's it! Those steps will yield you a pure IRLP Node. As a final step, and just to make sure the system comes up as expected, a node reboot would be recommended at this point. Take note of any irregularities during the boot-up process. There should be none.
|