Placeholder sample

From Projects Wiki
Jump to: navigation, search

Example.jpg


Description of script and other information

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Morbi eu justo sem. Sed condimentum consequat justo ut tempus. Vivamus semper volutpat lacus eu scelerisque. Praesent ornare dui vitae tortor volutpat non tempus enim dapibus. Donec a nisi tellus, eu feugiat est. Maecenas dictum bibendum tellus facilisis luctus. Etiam interdum accumsan lectus, a semper diam congue eget. Donec commodo magna non arcu pharetra semper. Quisque interdum sollicitudin fermentum.


#! /bin/sh

sudo apt-get install -y espeak 

cat >speakIP.sh <<DELIM
#! /bin/sh
sleep 2;
private=\`hostname -I\`
string="i p address is \$private"
echo \$string | espeak -a 20 -s 160 -v en-us 2>\/dev\/null
sleep 2;
echo \$string | espeak -a 20 -s 160 -v en-us 2>\/dev\/null
exit 0
DELIM

sudo chmod +x speakIP.sh
sudo mv speakIP.sh /etc/

sudo perl -i.bak -pe 's/^exit 0\b*$/\/etc\/speakIP.sh &\n\nexit 0/g' /etc/rc.local

exit