source: dr-valentin-server-common/trunk/fuentes/install-files/usr/share/dr-valentin/server/actions/060-dnsmasq @ 886

Last change on this file since 886 was 886, checked in by mabarracus, 5 years ago

Fixed, tested & ported to xenial

  • Property svn:executable set to *
File size: 634 bytes
Line 
1#!/bin/sh
2mkdir $1/dnsmasq/
3
4cp /etc/dnsmasq.conf $1/dnsmasq/
5cp -r /etc/dnsmasq.d/ $1/dnsmasq/
6#old from pandora
7#cp /etc/dnsmasq.d/ltsp-server.conf $1/dnsmasq/
8cp -r /var/lib/dnsmasq/ $1/dnsmasq/
9
10pidof dnsmasq && RET=0 || RET=1
11
12if [ "$RET" = "0" ];then 
13        echo "dnsmasq is running" > $1/dnsmasq/status
14else
15        echo "dnsmasq is stopped" > $1/dnsmasq/status
16fi
17
18host server >> $1/dnsmasq/host_queries
19host jclic-aula >> $1/dnsmasq/host_queries
20host cups >> $1/dnsmasq/host_queries
21host share >> $1/dnsmasq/host_queries
22host mirror >> $1/dnsmasq/host_queries
23host proxy >> $1/dnsmasq/host_queries
24host preseed >> $1/dnsmasq/host_queries
Note: See TracBrowser for help on using the repository browser.