Update Install.sh
This commit is contained in:
parent
06acc5ee1b
commit
9acb1fb82d
20
Install.sh
20
Install.sh
|
@ -11,6 +11,7 @@
|
||||||
# original project: Pavol Krigler <pavol.krigler@gelogic.net>
|
# original project: Pavol Krigler <pavol.krigler@gelogic.net>
|
||||||
#
|
#
|
||||||
|
|
||||||
|
|
||||||
echo -n "Do you wish to install the missing package (y/n)? "
|
echo -n "Do you wish to install the missing package (y/n)? "
|
||||||
old_stty_cfg=$(stty -g)
|
old_stty_cfg=$(stty -g)
|
||||||
stty raw -echo
|
stty raw -echo
|
||||||
|
@ -24,24 +25,21 @@ else
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
## install missing package
|
### Insdtall modules
|
||||||
# apt-get install -y ntp figlet
|
|
||||||
|
|
||||||
## start Installation
|
|
||||||
|
|
||||||
#make install
|
|
||||||
cp Stats32 /etc/motds32/Stats32
|
cp Stats32 /etc/motds32/Stats32
|
||||||
|
|
||||||
## Install Crontab
|
## Install Crontab
|
||||||
|
|
||||||
echo "add in crontab --> */5 * * * * /usr/bin/motds32 -g (generation each 5 minutes)"
|
echo "add ENTRY in crontab (generation each 5 minutes)"
|
||||||
#crontab << FIN
|
|
||||||
#$(crontab -l)
|
|
||||||
|
|
||||||
### MOTDs32 generation
|
crontab << FIN
|
||||||
#*/5 * * * * /etc/motds32/Stats32 > /etc/motds32/Stats32.txt | /usr/bin/motds32 -g 2>1
|
$(crontab -l)
|
||||||
|
|
||||||
|
### MOTDs32 generation (5 min)
|
||||||
|
*/5 * * * * /usr/bin/motds32 -g 2>1
|
||||||
###
|
###
|
||||||
#FIN
|
FIN
|
||||||
|
|
||||||
/usr/bin/motds32 -g
|
/usr/bin/motds32 -g
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue