updte something
[hombase.git] / other-sh / start.sh
blob3449ff73720b941d128b75a027f7801c872020df
1 #!bash
3 PATH=/usr/local/bin:/usr/bin:/bin:/usr/sbin
4 echo $PATH > ~/start.log
6 python -V >> ~/start.log 2>&1
8 #status= `ping 10.8.2.7 1 1 | grep '1 packets received' | gawk '{print $4}'
9 #if ping 10.8.2.7 1 1 | grep -q '1 packets received'
10 #then
11 #echo "starting office"
12 #office_proxy.sh
13 #else
14 #echo "staring home"
15 #home_proxy.sh
16 #fi
18 #set `date +%u%k`;
19 #if [[ $1 -gt 0 && $1 -lt 6 ]]
20 #then
21 #if [[ $2 -gt 8 && $2 -lt 12 ]]
22 #then
23 #echo "starting office"
24 #office_proxy.sh
25 #else
26 #if [[ $2 -gt 18 ]]
27 #then
28 #echo "starting home"
29 #sh.exe home_proxy.sh
30 #fi
31 #fi
32 #fi
33 cron
34 /usr/sbin/sshd
35 inetd
36 #~/other-sh/autologin.sh
37 #ssh -N -f -R '*:8022:localhost:22' jira
38 #ssh -N -f -R '*:8090:footballc2:8090' jira
39 #lighttpd -f /var/www/servers/localhost/py/blog/lighttpd2.conf
40 #/usr/local/sbin/ngircd -f /usr/local/etc/ngircd.conf
41 #cd /var/www/servers/localhost/py/qwebirc/
42 #./run.py
44 hostname=`hostname`
45 if [[ $hostname = "football12" ]]
46 then
47 inetd
49 if [[ $hostname = "football" ]]
50 then
51 echo
52 #sh ras_lifan.sh