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 |
---|
2 | mkdir $1/dnsmasq/ |
---|
3 | |
---|
4 | cp /etc/dnsmasq.conf $1/dnsmasq/ |
---|
5 | cp -r /etc/dnsmasq.d/ $1/dnsmasq/ |
---|
6 | cp /etc/dnsmasq.d/ltsp-server.conf $1/dnsmasq/ |
---|
7 | cp -r /var/lib/dnsmasq/ $1/dnsmasq/ |
---|
8 | |
---|
9 | pidof dnsmasq && RET=0 || RET=1 |
---|
10 | |
---|
11 | if [ "$RET" = "0" ];then |
---|
12 | echo "dnsmasq is running" > $1/dnsmasq/status |
---|
13 | else |
---|
14 | echo "dnsmasq is stopped" > $1/dnsmasq/status |
---|
15 | fi |
---|
16 | |
---|
17 | host server >> $1/dnsmasq/host_queries |
---|
18 | host jclic-aula >> $1/dnsmasq/host_queries |
---|
19 | host cups >> $1/dnsmasq/host_queries |
---|
20 | host share >> $1/dnsmasq/host_queries |
---|
21 | host mirror >> $1/dnsmasq/host_queries |
---|
22 | host proxy >> $1/dnsmasq/host_queries |
---|
23 | host preseed >> $1/dnsmasq/host_queries |
---|
Note: See
TracBrowser
for help on using the repository browser.