branding: add LEDE branding
Signed-off-by: John Crispin <blogic@openwrt.org>
This commit is contained in:
@@ -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"
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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"
|
||||
|
||||
@@ -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() {
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
config samba
|
||||
option 'name' 'OpenWrt'
|
||||
option 'name' 'Lede'
|
||||
option 'workgroup' 'WORKGROUP'
|
||||
option 'description' 'OpenWrt'
|
||||
option 'description' 'Lede'
|
||||
option 'homes' '1'
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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}"
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user