diff options
author | Kévin Raymond <kraymond@avencall.com> | 2012-09-05 14:15:24 +0200 |
---|---|---|
committer | Kévin Raymond <kraymond@avencall.com> | 2012-09-05 14:15:24 +0200 |
commit | 3af8bf188be4695a4eb2873522b458bcc2c3b5ff (patch) | |
tree | 7bd8c2e11c5ebba97541000f08fe75557dbb6fb4 | |
parent | a2db98730ff2346dfa9e6f455d5f469289ebdadb (diff) |
adding the files and README to create the master HDD
13 files changed, 61 insertions, 0 deletions
diff --git a/clonezilla/README b/clonezilla/README index 5eb10cf..70699fa 100644 --- a/clonezilla/README +++ b/clonezilla/README @@ -14,3 +14,16 @@ The Frenetic Mass Cloning Guide Read the full documentation at repo:wiki/factory/Batch\ Disks\ Cloning.page (or http://xioh.neetwork.net:5001/factory/Batch%20Disks%20Cloning) + + +Fist you need the correct xivo install. +Cloning the disk is explained at +http://githardware.avencall.com:5001/factory/Batch%20Disks%20Cloning +Once installed, on the disk you need to: + # apt-get install git stress htop sox lsof screen festvox-kallpc16k festival + # rm /etc/udev/rules.d/70-persistent-net.rules in order to rename the +network interfaces. + # cp -r master_hdd/* / + # update-rc.d xioh defaults 1 + # depmod + diff --git a/clonezilla/master_hdd/etc/init.d/xioh b/clonezilla/master_hdd/etc/init.d/xioh new file mode 100755 index 0000000..451a733 --- /dev/null +++ b/clonezilla/master_hdd/etc/init.d/xioh @@ -0,0 +1,29 @@ +#!/bin/sh -e +# +### BEGIN INIT INFO +# Provides: xioh +# Default-Start: 2 3 4 5 +# Default-Stop: 0 1 6 +# Required-Start: $remote_fs $syslog $network +# Required-Stop: $remote_fs $syslog $network +# Short-Description: Used to load our drivers. Should be provided though a .deb +### END INIT INFO +# + +modprobe -f xivovp +modprobe -f xivoxhfc +dahdi_cfg -vvvvvvvvvvv +#/etc/init.d/asterisk restart + +modprobe gcu +modprobe e1000 + +ifconfig eth0 10.42.0.1 netmask 255.255.255.0 up +ifconfig eth1 10.42.1.1 netmask 255.255.255.0 up +ifconfig eth2 10.42.2.1 netmask 255.255.255.0 up +route add default gw 10.42.0.254 + +#ntpdate update +#ntpdate pool.ntp.org + +exit 0 diff --git a/clonezilla/master_hdd/etc/profile.d/xioh.sh b/clonezilla/master_hdd/etc/profile.d/xioh.sh new file mode 100644 index 0000000..5d142e7 --- /dev/null +++ b/clonezilla/master_hdd/etc/profile.d/xioh.sh @@ -0,0 +1 @@ +alias haaaaaaaalt="sync;mount -f -o remount,ro / && echo 'RO fs mounted, you can power off now.'" diff --git a/clonezilla/master_hdd/lib/modules/2.6.32-5-686/xioh/e1000.ko b/clonezilla/master_hdd/lib/modules/2.6.32-5-686/xioh/e1000.ko Binary files differnew file mode 100644 index 0000000..ae89968 --- /dev/null +++ b/clonezilla/master_hdd/lib/modules/2.6.32-5-686/xioh/e1000.ko diff --git a/clonezilla/master_hdd/lib/modules/2.6.32-5-686/xioh/gcu.ko b/clonezilla/master_hdd/lib/modules/2.6.32-5-686/xioh/gcu.ko Binary files differnew file mode 100755 index 0000000..173867e --- /dev/null +++ b/clonezilla/master_hdd/lib/modules/2.6.32-5-686/xioh/gcu.ko diff --git a/clonezilla/master_hdd/lib/modules/2.6.32-5-686/xioh/gpio.ko b/clonezilla/master_hdd/lib/modules/2.6.32-5-686/xioh/gpio.ko Binary files differnew file mode 100644 index 0000000..696da26 --- /dev/null +++ b/clonezilla/master_hdd/lib/modules/2.6.32-5-686/xioh/gpio.ko diff --git a/clonezilla/master_hdd/lib/modules/2.6.32-5-686/xioh/hssvoice_driver.ko b/clonezilla/master_hdd/lib/modules/2.6.32-5-686/xioh/hssvoice_driver.ko Binary files differnew file mode 100644 index 0000000..2c5088f --- /dev/null +++ b/clonezilla/master_hdd/lib/modules/2.6.32-5-686/xioh/hssvoice_driver.ko diff --git a/clonezilla/master_hdd/lib/modules/2.6.32-5-686/xioh/tdm_infra.ko b/clonezilla/master_hdd/lib/modules/2.6.32-5-686/xioh/tdm_infra.ko Binary files differnew file mode 100644 index 0000000..8385944 --- /dev/null +++ b/clonezilla/master_hdd/lib/modules/2.6.32-5-686/xioh/tdm_infra.ko diff --git a/clonezilla/master_hdd/lib/modules/2.6.32-5-686/xioh/tdm_setup_driver.ko b/clonezilla/master_hdd/lib/modules/2.6.32-5-686/xioh/tdm_setup_driver.ko Binary files differnew file mode 100644 index 0000000..d468740 --- /dev/null +++ b/clonezilla/master_hdd/lib/modules/2.6.32-5-686/xioh/tdm_setup_driver.ko diff --git a/clonezilla/master_hdd/lib/modules/2.6.32-5-686/xioh/xivo_tdm.ko b/clonezilla/master_hdd/lib/modules/2.6.32-5-686/xioh/xivo_tdm.ko Binary files differnew file mode 100644 index 0000000..049fa40 --- /dev/null +++ b/clonezilla/master_hdd/lib/modules/2.6.32-5-686/xioh/xivo_tdm.ko diff --git a/clonezilla/master_hdd/lib/modules/2.6.32-5-686/xioh/xivovp.ko b/clonezilla/master_hdd/lib/modules/2.6.32-5-686/xioh/xivovp.ko Binary files differnew file mode 100644 index 0000000..5858dbc --- /dev/null +++ b/clonezilla/master_hdd/lib/modules/2.6.32-5-686/xioh/xivovp.ko diff --git a/clonezilla/master_hdd/lib/modules/2.6.32-5-686/xioh/xivoxhfc.ko b/clonezilla/master_hdd/lib/modules/2.6.32-5-686/xioh/xivoxhfc.ko Binary files differnew file mode 100644 index 0000000..47f8da1 --- /dev/null +++ b/clonezilla/master_hdd/lib/modules/2.6.32-5-686/xioh/xivoxhfc.ko diff --git a/clonezilla/master_hdd/usr/share/xioh/tts_asterisk.sh b/clonezilla/master_hdd/usr/share/xioh/tts_asterisk.sh new file mode 100755 index 0000000..af06a56 --- /dev/null +++ b/clonezilla/master_hdd/usr/share/xioh/tts_asterisk.sh @@ -0,0 +1,18 @@ +#!/bin/sh -e + +XIOH_HOME=/usr/share/xioh +TMP_DIR=/tmp +RESULTS_TMP=$TMP_DIR/results.txt +SND_TMP=$TMP_DIR/result.wav +SND_RESULT=$TMP_DIR/result_forast.wav + +[ -e $SND_TMP ] && rm -f $SND_TMP +[ -e $SND_RESULT ] && rm -f $SND_RESULT + + +echo "Asterisk is running" > $RESULTS_TMP +text2wave $RESULTS_TMP -o $SND_TMP +sox $SND_TMP -t wav -c1 -r8000 $SND_RESULT + +exit 0 + |