branding: add LEDE branding

Signed-off-by: John Crispin <blogic@openwrt.org>
This commit is contained in:
John Crispin
2016-03-24 22:40:13 +01:00
parent 343c3be454
commit fa69553900
40 changed files with 76 additions and 85 deletions

View File

@@ -33,7 +33,7 @@ define Package/base-files
SECTION:=base
CATEGORY:=Base system
DEPENDS:=+netifd +libc +procd +jsonfilter +SIGNED_PACKAGES:usign +fstools
TITLE:=Base filesystem for OpenWrt
TITLE:=Base filesystem for Lede
URL:=http://openwrt.org/
VERSION:=$(PKG_RELEASE)-$(REVISION)
endef

View File

@@ -1,13 +1,10 @@
_______ ________ __
| |.-----.-----.-----.| | | |.----.| |_
| - || _ | -__| || | | || _|| _|
|_______|| __|_____|__|__||________||__| |____|
|__| W I R E L E S S F R E E D O M
-----------------------------------------------------
DESIGNATED DRIVER (%C, %R)
-----------------------------------------------------
* 2 oz. Orange Juice Combine all juices in a
* 2 oz. Pineapple Juice tall glass filled with
* 2 oz. Grapefruit Juice ice, stir well.
* 2 oz. Cranberry Juice
-----------------------------------------------------
_________
/ /\ _ ___ ___ ___
/ LE / \ | | | __| \| __|
/ DE / \ | |__| _|| |) | _|
/________/ LE \ |____|___|___/|___| lede-project.org
\ \ DE /
\ LE \ / -----------------------------------------------------------
\ DE \ / Reboot (%C, %R)
\________\/ -----------------------------------------------------------

View File

@@ -1,5 +1,5 @@
config system
option hostname OpenWrt
option hostname lede
option timezone UTC
config timeserver ntp

View File

@@ -7,7 +7,7 @@ USE_PROCD=1
validate_system_section()
{
uci_validate_section system system "${1}" \
'hostname:string:OpenWrt' \
'hostname:string:lede' \
'conloglevel:uinteger' \
'buffersize:uinteger' \
'timezone:string:UTC' \

View File

@@ -39,7 +39,7 @@ preinit_echo() {
}
pi_indicate_preinit() {
preinit_net_echo "Doing OpenWrt Preinit\n"
preinit_net_echo "Doing Lede Preinit\n"
set_state preinit
}

View File

@@ -147,7 +147,7 @@ if VERSIONOPT
config VERSION_DIST
string
prompt "Release distribution"
default "OpenWrt"
default "Lede"
help
This is the name of the release distribution.
If unspecified, it defaults to OpenWrt.
@@ -170,23 +170,23 @@ if VERSIONOPT
config VERSION_REPO
string
prompt "Release repository"
default "http://downloads.openwrt.org/snapshots/trunk/%S/packages"
default "http://downloads.lede-project.org/snapshots/trunk/%S/packages"
help
This is the repository address embedded in the image, it defaults
to the trunk snapshot repo; the url may contain the following placeholders:
%R .. Revision number
%V .. Release version or revision number, uppercase
%v .. Release version or revision number, lowercase
%C .. Release version or "Bleeding Edge", uppercase
%c .. Release version or "bleeding_edge", lowercase
%C .. Release version or "HEAD", uppercase
%c .. Release version or "head", lowercase
%N .. Release name, uppercase
%n .. Release name, lowercase
%D .. Distribution name or "OpenWrt", uppercase
%d .. Distribution name or "openwrt", lowercase
%D .. Distribution name or "Lede", uppercase
%d .. Distribution name or "lede", lowercase
%T .. Target name
%S .. Target/Subtarget name
%t .. Build taint flags, e.g. "no-all busybox"
%M .. Manufacturer name or "OpenWrt"
%M .. Manufacturer name or "Lede"
%P .. Product name or "Generic"
%h .. Hardware revision or "v0"

View File

@@ -469,7 +469,7 @@ config wifi-iface
option device wl${i}
option network lan
option mode ap
option ssid OpenWrt${i#0}
option ssid Lede${i#0}
option encryption none
EOF

View File

@@ -261,7 +261,7 @@ config wifi-iface
option device radio$devidx
option network lan
option mode ap
option ssid OpenWrt
option ssid Lede
option encryption none
EOF

View File

@@ -123,7 +123,7 @@ config wifi-iface
option device radio$devidx
option network lan
option mode ap
option ssid OpenWrt
option ssid Lede
option encryption none
EOF

View File

@@ -121,16 +121,16 @@ ifndef CONFIG_OPENSSL_HARDWARE_SUPPORT
endif
ifeq ($(CONFIG_x86_64),y)
OPENSSL_TARGET:=linux-x86_64-openwrt
OPENSSL_TARGET:=linux-x86_64-lede
OPENSSL_MAKEFLAGS += LIBDIR=lib
else
OPENSSL_OPTIONS+=no-sse2
ifeq ($(CONFIG_mips)$(CONFIG_mipsel),y)
OPENSSL_TARGET:=linux-mips-openwrt
OPENSSL_TARGET:=linux-mips-lede
# else ifeq ($(CONFIG_arm)$(CONFIG_armeb),y)
# OPENSSL_TARGET:=linux-armv4-openwrt
else
OPENSSL_TARGET:=linux-generic-openwrt
OPENSSL_TARGET:=linux-generic-lede
OPENSSL_OPTIONS+=no-perlasm
endif
endif

View File

@@ -625,7 +625,7 @@ start_service() {
[ $ADD_LOCAL_HOSTNAME -eq 1 ] && {
local lanaddr lanaddr6
local ulaprefix="$(uci_get network @globals[0] ula_prefix)"
local hostname="$(uci_get system @system[0] hostname OpenWrt)"
local hostname="$(uci_get system @system[0] hostname Lede)"
network_get_ipaddr lanaddr "lan" && {
dhcp_domain_add "" "$hostname" "$lanaddr"

View File

@@ -195,8 +195,8 @@ hostapd_set_bss_options() {
[ -n "$wps_possible" -a -n "$config_methods" ] && {
config_get device_type "$vif" wps_device_type "6-0050F204-1"
config_get device_name "$vif" wps_device_name "OpenWrt AP"
config_get manufacturer "$vif" wps_manufacturer "openwrt.org"
config_get device_name "$vif" wps_device_name "Lede AP"
config_get manufacturer "$vif" wps_manufacturer "www.lede-project.org"
config_get wps_pin "$vif" wps_pin
config_get_bool ext_registrar "$vif" ext_registrar 0

View File

@@ -331,8 +331,8 @@ hostapd_set_bss_options() {
[ -n "$wps_possible" -a -n "$config_methods" ] && {
set_default ext_registrar 0
set_default wps_device_type "6-0050F204-1"
set_default wps_device_name "OpenWrt AP"
set_default wps_manufacturer "openwrt.org"
set_default wps_device_name "Lede AP"
set_default wps_manufacturer "www.lede-project.org"
wps_state=2
[ -n "$wps_configured" ] && wps_state=1

View File

@@ -8,7 +8,7 @@ config lldpd config
option lldp_location "2:FR:6:Commercial Rd:3:Roseville:19:4"
# if empty, the distribution description is sent
#option lldp_description "OpenWrt System"
#option lldp_description "Lede System"
# interfaces to listen on
list interface "loopback"

View File

@@ -14,7 +14,7 @@ find_release_info()
[ -z "$DISTRIB_DESCRIPTION" ] && [ -s /etc/openwrt_version ] && \
DISTRIB_DESCRIPTION="$(cat /etc/openwrt_version)"
echo "${DISTRIB_DESCRIPTION:-Unknown OpenWrt release} @ $(cat /proc/sys/kernel/hostname)"
echo "${DISTRIB_DESCRIPTION:-Unknown Lede release} @ $(cat /proc/sys/kernel/hostname)"
}
start_service() {

View File

@@ -1,6 +1,6 @@
config samba
option 'name' 'OpenWrt'
option 'name' 'Lede'
option 'workgroup' 'WORKGROUP'
option 'description' 'OpenWrt'
option 'description' 'Lede'
option 'homes' '1'

View File

@@ -28,9 +28,9 @@ smb_header() {
local name workgroup description charset
local hostname="$(uci_get system.@system[0].hostname)"
config_get name $1 name "${hostname:-OpenWrt}"
config_get workgroup $1 workgroup "${hostname:-OpenWrt}"
config_get description $1 description "Samba on ${hostname:-OpenWrt}"
config_get name $1 name "${hostname:-Lede}"
config_get workgroup $1 workgroup "${hostname:-Lede}"
config_get description $1 description "Samba on ${hostname:-Lede}"
config_get charset $1 charset "UTF-8"
mkdir -p /var/etc

View File

@@ -83,7 +83,7 @@ config uhttpd main
option tcp_keepalive 1
# Basic auth realm, defaults to local hostname
# option realm OpenWrt
# option realm Lede
# Configuration file in busybox httpd format
# option config /etc/httpd.conf
@@ -119,4 +119,4 @@ config cert px5g
option location Unknown
# Common name
option commonname OpenWrt
option commonname Lede

View File

@@ -46,7 +46,7 @@ generate_keys() {
[ -x "$PX5G_BIN" ] && {
$PX5G_BIN selfsigned -der \
-days ${days:-730} -newkey rsa:${bits:-2048} -keyout "${UHTTPD_KEY}.new" -out "${UHTTPD_CERT}.new" \
-subj /C="${country:-DE}"/ST="${state:-Saxony}"/L="${location:-Leipzig}"/CN="${commonname:-OpenWrt}"
-subj /C="${country:-DE}"/ST="${state:-Saxony}"/L="${location:-Leipzig}"/CN="${commonname:-Lede}"
sync
mv "${UHTTPD_KEY}.new" "${UHTTPD_KEY}"
mv "${UHTTPD_CERT}.new" "${UHTTPD_CERT}"

View File

@@ -70,7 +70,7 @@ define Build/Configure
$(PKG_BUILD_DIR)/Makefile
$(SED) "s,^LIBC_INCLUDE.*,LIBC_INCLUDE=$(STAGING_DIR)/include," \
$(PKG_BUILD_DIR)/Makefile
echo "static const char SNAPSHOT[] = \"$(PKG_VERSION)-$(PKG_RELEASE)-openwrt\";" \
echo "static const char SNAPSHOT[] = \"$(PKG_VERSION)-$(PKG_RELEASE)-lede\";" \
> $(PKG_BUILD_DIR)/include/SNAPSHOT.h
endef