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

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

Copy trusty code

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