diff options
author | Jo-Philipp Wich <jow@openwrt.org> | 2010-03-25 16:14:14 +0000 |
---|---|---|
committer | Jo-Philipp Wich <jow@openwrt.org> | 2010-03-25 16:14:14 +0000 |
commit | b3e4a6503a2b852be29b9ea965efd620dbe2e944 (patch) | |
tree | 87ae3593a40565e25a3930ae9f498011d6d3f768 /package/busybox/files | |
parent | fc0d5602068709355c852616a3f8d90b3496c3f5 (diff) | |
download | upstream-b3e4a6503a2b852be29b9ea965efd620dbe2e944.tar.gz upstream-b3e4a6503a2b852be29b9ea965efd620dbe2e944.tar.bz2 upstream-b3e4a6503a2b852be29b9ea965efd620dbe2e944.zip |
busybox: disable httpd applet
SVN-Revision: 20432
Diffstat (limited to 'package/busybox/files')
-rwxr-xr-x | package/busybox/files/httpd | 54 |
1 files changed, 0 insertions, 54 deletions
diff --git a/package/busybox/files/httpd b/package/busybox/files/httpd deleted file mode 100755 index 3714a02de5..0000000000 --- a/package/busybox/files/httpd +++ /dev/null @@ -1,54 +0,0 @@ -#!/bin/sh /etc/rc.common -# Copyright (C) 2006 OpenWrt.org - -START=50 -HTTPD_BIN="/usr/sbin/httpd" - -system_config() { - local cfg="$1" - - config_get hostname "$cfg" hostname -} - -httpd_config() { - local cfg="$1" - local c_file port realm home args - - config_get c_file "$cfg" c_file - [ -n "$c_file" -a -f "$c_file" ] && append args "-c \"$c_file\"" - config_get port "$cfg" port - append args "-p ${port:-80}" - config_get home "$cfg" home - home="${home:-/www}" - [ -d "$home" ] || return 1 - append args "-h \"$home\"" - config_get realm "$cfg" realm - realm="${realm:-$hostname}" - append args "-r \"$realm\"" - eval "$HTTPD_BIN $args" -} - -start() { - [ -x "$HTTPD_BIN" ] || return 1 - - unset hostname - config_load system - config_foreach system_config system - hostname="${hostname:-OpenWrt}" - - unset args - config_load httpd - [ "$?" != "0" ] && { - uci_set_default httpd <<EOF -config 'httpd' - option 'port' '80' - option 'home' '/www' -EOF - config_load httpd - } - config_foreach httpd_config httpd -} - -stop() { - killall httpd -} |