⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 httpd.svn-base

📁 嵌入式无线路由系统openwrt的web配置工具
💻 SVN-BASE
字号:
#!/bin/sh /etc/rc.common# Copyright (C) 2006 OpenWrt.org# Copyright (C) 2008 OpenRB.comSTART=50HTTPD_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 login password	config_get c_file "$cfg" c_file 	[ -z "$c_file" ] && c_file='/etc/httpd.conf'	config_get login "$cfg" login	config_get password "$cfg" password	[ -n "$login" -a -n "$password" ] && {		password=$("$HTTPD_BIN" -m "$password")		echo "/:$login:$password" > $c_file	}	[ -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 <<EOFconfig 'httpd'	option 'port' '80'	option 'home' '/www'EOF		config_load httpd	}	config_foreach httpd_config httpd}stop() {	killall httpd}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -