1156,6 → 1156,8 |
ln -s /etc/init.d/chilli /usr/libexec/chilli |
# conf file creation |
[ -e /etc/chilli.conf.default ] || cp /etc/chilli.conf /etc/chilli.conf.default |
#NTP Option configuration for DHCP |
PRIVATE_IP_HEXA=$(printf "%02x\n" $(echo $PRIVATE_IP | cut -d'.' -f1))$(printf "%02x\n" $(echo $PRIVATE_IP | cut -d'.' -f2))$(printf "%02x\n" $(echo $PRIVATE_IP | cut -d'.' -f3))$(printf "%02x\n" $(echo $PRIVATE_IP | cut -d'.' -f4)) |
cat <<EOF > /etc/chilli.conf |
# coova config for ALCASAR |
cmdsocket /var/run/chilli.sock |
1190,10 → 1192,10 |
condown $DIR_DEST_BIN/alcasar-condown.sh |
include $DIR_DEST_ETC/alcasar-uamallowed |
include $DIR_DEST_ETC/alcasar-uamdomain |
dhcpopt 2a04$PRIVATE_IP_HEXA |
#dhcpgateway none |
#dhcprelayagent none |
#dhcpgatewayport none |
#dhcpopt none |
EOF |
# create file for DHCP static ip. Reserve the second IP address for INTIF (the first one is for tun0) |
echo "$PRIVATE_MAC $PRIVATE_SECOND_IP" > $DIR_DEST_ETC/alcasar-ethers |
1870,8 → 1872,6 |
# Put the default values in conf file |
echo "SSH=on" >> $CONF_FILE |
echo "SSH_ADMIN_FROM=0.0.0.0/0.0.0.0" >> $CONF_FILE |
echo "CHILLI_NTP_ENABLED=off" >> $CONF_FILE |
echo "CHILLI_NTP_IP=none" >> $CONF_FILE |
echo "LDAP=off" >> $CONF_FILE |
echo "LDAP_IP=0.0.0.0/0.0.0.0" >> $CONF_FILE |
echo "MULTIWAN=off" >> $CONF_FILE |