From 206d22b5ee58dd56e7fff55c25453833ec6a2611 Mon Sep 17 00:00:00 2001 From: Chris Koeritz Date: Mon, 8 May 2017 21:43:10 -0400 Subject: [PATCH] modem files and mailman backup adding a backup script for cron to get our mailman archives. also adding a bunch of archaic antiquated but potentially useful modem support files which can dial out using ppp and install the dgc modem driver. --- infobase/configuration/cron/backup_mailman.crontab | 6 ++++++ scripts/modem/dial_modem.sh | 2 ++ scripts/modem/fix_modem_perms.sh | 3 +++ scripts/modem/modem_driver/getting_modem_driver.txt | 4 ++++ scripts/modem/reinstall_dgcmodem_driver.sh | 9 +++++++++ 5 files changed, 24 insertions(+) create mode 100644 infobase/configuration/cron/backup_mailman.crontab create mode 100755 scripts/modem/dial_modem.sh create mode 100755 scripts/modem/fix_modem_perms.sh create mode 100644 scripts/modem/modem_driver/getting_modem_driver.txt create mode 100755 scripts/modem/reinstall_dgcmodem_driver.sh diff --git a/infobase/configuration/cron/backup_mailman.crontab b/infobase/configuration/cron/backup_mailman.crontab new file mode 100644 index 00000000..84044ce0 --- /dev/null +++ b/infobase/configuration/cron/backup_mailman.crontab @@ -0,0 +1,6 @@ + +#[backup_mailman_archives] +# creates a monthly backup of all the mailman list server's archives. +14 2 28 * * (source $HOME/feisty_meow/scripts/core/launch_feisty_meow.sh; tar -czf /z/stuffing/archives/mailman_backup_$(hostname)_$(date_stringer).tar.gz /var/lib/mailman ) &>/tmp/${CRONUSER}-cron-mailman_backup.log + + diff --git a/scripts/modem/dial_modem.sh b/scripts/modem/dial_modem.sh new file mode 100755 index 00000000..d1a88120 --- /dev/null +++ b/scripts/modem/dial_modem.sh @@ -0,0 +1,2 @@ +#!/bin/bash +sudo gnome-ppp diff --git a/scripts/modem/fix_modem_perms.sh b/scripts/modem/fix_modem_perms.sh new file mode 100755 index 00000000..d46bb26e --- /dev/null +++ b/scripts/modem/fix_modem_perms.sh @@ -0,0 +1,3 @@ +#!/bin/bash +sudo chmod 666 /dev/ttyACM0 + diff --git a/scripts/modem/modem_driver/getting_modem_driver.txt b/scripts/modem/modem_driver/getting_modem_driver.txt new file mode 100644 index 00000000..6b9c37f6 --- /dev/null +++ b/scripts/modem/modem_driver/getting_modem_driver.txt @@ -0,0 +1,4 @@ + +http://www.linuxant.com/drivers/dgc/ + + diff --git a/scripts/modem/reinstall_dgcmodem_driver.sh b/scripts/modem/reinstall_dgcmodem_driver.sh new file mode 100755 index 00000000..57db708c --- /dev/null +++ b/scripts/modem/reinstall_dgcmodem_driver.sh @@ -0,0 +1,9 @@ +#!/bin/bash + +THIS_FOLDER="$( \cd "$(\dirname "$0")" && /bin/pwd )" +pushd $THIS_FOLDER/modem_driver/* +sudo apt-get remove dgcmodem +dpkg -i dgcmodem_1.13_i386.deb +popd + + -- 2.34.1