Subversion Repositories ALCASAR

Rev

Rev 1800 | Rev 1805 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log

Rev 1800 Rev 1801
Line 1... Line 1...
1
#!/bin/bash
1
#!/bin/bash
2
#  $Id: alcasar.sh 1800 2016-02-28 18:02:27Z richard $ 
2
#  $Id: alcasar.sh 1801 2016-02-28 21:04:10Z richard $ 
3
 
3
 
4
# alcasar.sh
4
# alcasar.sh
5
 
5
 
6
# ALCASAR Install script -  CopyLeft ALCASAR Team [Rexy + 3abtux + Steweb + Crox + ...] 
6
# ALCASAR Install script -  CopyLeft ALCASAR Team [Rexy + 3abtux + Steweb + Crox + ...] 
7
# Ce programme est un logiciel libre ; This software is free and open source
7
# Ce programme est un logiciel libre ; This software is free and open source
Line 1090... Line 1090...
1090
[Install]
1090
[Install]
1091
WantedBy=multi-user.target
1091
WantedBy=multi-user.target
1092
EOF
1092
EOF
1093
# init file creation
1093
# init file creation
1094
	[ -e /etc/init.d/chilli.default ] || mv /etc/init.d/chilli /etc/init.d/chilli.default
1094
	[ -e /etc/init.d/chilli.default ] || mv /etc/init.d/chilli /etc/init.d/chilli.default
1095
	cat <<EOF > /usr/libexec/chilli
1095
	cat <<EOF > /etc/init.d/chilli
1096
#!/bin/sh
1096
#!/bin/sh
1097
#
1097
#
1098
# chilli CoovaChilli init
1098
# chilli CoovaChilli init
1099
#
1099
#
1100
# chkconfig: 2345 65 35
1100
# chkconfig: 2345 65 35
Line 1172... Line 1172...
1172
        echo "Usage: \$0 {start|stop|restart|reload|status}"
1172
        echo "Usage: \$0 {start|stop|restart|reload|status}"
1173
        exit 1
1173
        exit 1
1174
esac
1174
esac
1175
echo
1175
echo
1176
EOF
1176
EOF
1177
chmod a+x /usr/libexec/chilli
1177
chmod a+x /etc/init.d/chilli
-
 
1178
ln -s /etc/init.d/chilli /usr/libexec/chilli
1178
# conf file creation
1179
# conf file creation
1179
	[ -e /etc/chilli.conf.default ] || cp /etc/chilli.conf /etc/chilli.conf.default
1180
	[ -e /etc/chilli.conf.default ] || cp /etc/chilli.conf /etc/chilli.conf.default
1180
	cat <<EOF > /etc/chilli.conf
1181
	cat <<EOF > /etc/chilli.conf
1181
# coova config for ALCASAR
1182
# coova config for ALCASAR
1182
cmdsocket	/var/run/chilli.sock
1183
cmdsocket	/var/run/chilli.sock