source: freewrt/package/dnsmasq/files/dnsmasq.init@ 141418f

freewrt_1_0 freewrt_2_0
Last change on this file since 141418f was 141418f, checked in by Waldemar Brodkorb <wbx@…>, 19 years ago
  • remove some obsolete firewall config stuff
  • add old-style network configuration based on nvram
  • add new rc.conf file to configure which services should be started on startup, bsd-ish behavior
  • disable firewall by default in rc.conf, remote update via ssh is now possible. port 22 is open by default on wan side
  • enable suid bit on busybox and add a "admin" user
  • ssh via root is disabled (dropbear -w)
  • default password for "admin" is "FreeWRT", as well as for root please change directly after installation
  • remove telnetd from startup, will be used only for failsafe

git-svn-id: svn://www.freewrt.org/trunk/freewrt@181 afb5a338-a214-0410-bd46-81f09a774fd1

  • Property mode set to 100644
File size: 292 bytes
Line 
1#!/bin/sh
2
3. /etc/rc.conf
4
5if [ X"${dns_dhcp}" == X"NO" ]; then
6 exit 0
7fi
8
9[ -f /etc/dnsmasq.conf ] || exit
10
11case $1 in
12 start)
13 /usr/sbin/dnsmasq
14 ;;
15 stop)
16 killall dnsmasq
17 ;;
18 restart)
19 $0 stop
20 $0 start
21 ;;
22 *)
23 echo "Usage: $0 {start | stop | restart}"
24 ;;
25esac
26exit 0
Note: See TracBrowser for help on using the repository browser.