add copyright headers to base-files scripts and config files
SVN-Revision: 4090
This commit is contained in:
parent
3e639bb44e
commit
f804d0ea1d
40 changed files with 70 additions and 3 deletions
|
@ -1,5 +1,5 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
# $Id$
|
# Copyright (C) 2006 OpenWrt.org
|
||||||
|
|
||||||
rom=$(awk '/squashfs/ {print $2}' /proc/mounts)
|
rom=$(awk '/squashfs/ {print $2}' /proc/mounts)
|
||||||
jffs=$(awk '/jffs2/ {print $2}' /proc/mounts)
|
jffs=$(awk '/jffs2/ {print $2}' /proc/mounts)
|
||||||
|
|
|
@ -1,4 +1,6 @@
|
||||||
# Network configuration file
|
# Network configuration file
|
||||||
|
# Copyright (C) 2006 OpenWrt.org
|
||||||
|
|
||||||
|
|
||||||
## LAN configuration
|
## LAN configuration
|
||||||
lan_ifname="eth0"
|
lan_ifname="eth0"
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
# Network configuration file
|
# Network configuration file
|
||||||
|
# Copyright (C) 2006 OpenWrt.org
|
||||||
|
|
||||||
## LAN configuration
|
## LAN configuration
|
||||||
lan_ifname="br0"
|
lan_ifname="br0"
|
||||||
|
|
|
@ -1,4 +1,6 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
# Copyright (C) 2006 OpenWrt.org
|
||||||
|
|
||||||
mount none /proc -t proc
|
mount none /proc -t proc
|
||||||
size=$(awk '/Mem:/ {l=5242880;print((s=$2/2)<l)?$2-l:s}' /proc/meminfo)
|
size=$(awk '/Mem:/ {l=5242880;print((s=$2/2)<l)?$2-l:s}' /proc/meminfo)
|
||||||
mount none /tmp -t tmpfs -o size=$size
|
mount none /tmp -t tmpfs -o size=$size
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
# $Id$
|
# Copyright (C) 2006 OpenWrt.org
|
||||||
|
|
||||||
rom=$(awk '/squashfs/ {print $2}' /proc/mounts)
|
rom=$(awk '/squashfs/ {print $2}' /proc/mounts)
|
||||||
jffs=$(awk '/jffs2/ {print $2}' /proc/mounts)
|
jffs=$(awk '/jffs2/ {print $2}' /proc/mounts)
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
|
# Copyright (C) 2006 OpenWrt.org
|
||||||
|
|
||||||
config wifi-device wl0
|
config wifi-device wl0
|
||||||
option type broadcom
|
option type broadcom
|
||||||
option channel 5
|
option channel 5
|
||||||
|
|
|
@ -1,4 +1,6 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
# Copyright (C) 2006 OpenWrt.org
|
||||||
|
|
||||||
setup_wl()
|
setup_wl()
|
||||||
{
|
{
|
||||||
[ -f /proc/net/wl0 ] && {
|
[ -f /proc/net/wl0 ] && {
|
||||||
|
|
|
@ -1,4 +1,6 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
# Copyright (C) 2006 OpenWrt.org
|
||||||
|
|
||||||
[ -e /etc/config/network ] && exit 0
|
[ -e /etc/config/network ] && exit 0
|
||||||
|
|
||||||
mkdir -p /etc/config
|
mkdir -p /etc/config
|
||||||
|
|
|
@ -1,4 +1,6 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
# Copyright (C) 2006 OpenWrt.org
|
||||||
|
|
||||||
export PATH=/bin:/sbin:/usr/bin:/usr/sbin
|
export PATH=/bin:/sbin:/usr/bin:/usr/sbin
|
||||||
mount none /proc -t proc
|
mount none /proc -t proc
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,6 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
# Copyright (C) 2006 OpenWrt.org
|
||||||
|
|
||||||
is_dirty() {
|
is_dirty() {
|
||||||
grep Broadcom /proc/cpuinfo >&- || return 1
|
grep Broadcom /proc/cpuinfo >&- || return 1
|
||||||
OFFSET="$(($(hexdump -v /dev/mtdblock/1 -s 20 -n 2 -e '"%d"')-1))"
|
OFFSET="$(($(hexdump -v /dev/mtdblock/1 -s 20 -n 2 -e '"%d"')-1))"
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
# $Id$
|
# Copyright (C) 2006 OpenWrt.org
|
||||||
|
|
||||||
rom=$(awk '/squashfs/ {print $2}' /proc/mounts)
|
rom=$(awk '/squashfs/ {print $2}' /proc/mounts)
|
||||||
jffs=$(awk '/jffs2/ {print $2}' /proc/mounts)
|
jffs=$(awk '/jffs2/ {print $2}' /proc/mounts)
|
||||||
|
|
|
@ -1,4 +1,6 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
# Copyright (C) 2006 OpenWrt.org
|
||||||
|
|
||||||
setup_eth()
|
setup_eth()
|
||||||
{
|
{
|
||||||
[ -d /proc/switch ] || {
|
[ -d /proc/switch ] || {
|
||||||
|
|
|
@ -1,4 +1,6 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
# Copyright (C) 2006 OpenWrt.org
|
||||||
|
|
||||||
[ -e /etc/config/network ] && exit 0
|
[ -e /etc/config/network ] && exit 0
|
||||||
|
|
||||||
mkdir -p /etc/config
|
mkdir -p /etc/config
|
||||||
|
|
|
@ -1,4 +1,6 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
# Copyright (C) 2006 OpenWrt.org
|
||||||
|
|
||||||
export PATH=/bin:/sbin:/usr/bin:/usr/sbin
|
export PATH=/bin:/sbin:/usr/bin:/usr/sbin
|
||||||
mount none /proc -t proc
|
mount none /proc -t proc
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,6 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
# Copyright (C) 2006 OpenWrt.org
|
||||||
|
|
||||||
is_dirty() {
|
is_dirty() {
|
||||||
grep Broadcom /proc/cpuinfo >&- || return 1
|
grep Broadcom /proc/cpuinfo >&- || return 1
|
||||||
OFFSET="$(($(hexdump -v /dev/mtdblock/1 -s 20 -n 2 -e '"%d"')-1))"
|
OFFSET="$(($(hexdump -v /dev/mtdblock/1 -s 20 -n 2 -e '"%d"')-1))"
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
# Copyright (C) 2006 OpenWrt.org
|
||||||
|
|
||||||
awk -f /usr/lib/common.awk -f - $* <<EOF
|
awk -f /usr/lib/common.awk -f - $* <<EOF
|
||||||
BEGIN {
|
BEGIN {
|
||||||
|
|
|
@ -1,4 +1,6 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
# Copyright (C) 2006 OpenWrt.org
|
||||||
|
|
||||||
grep '^root:[^!]' /etc/passwd >&- 2>&-
|
grep '^root:[^!]' /etc/passwd >&- 2>&-
|
||||||
[ "$?" = "0" -a -z "$FAILSAFE" ] &&
|
[ "$?" = "0" -a -z "$FAILSAFE" ] &&
|
||||||
{
|
{
|
||||||
|
|
|
@ -1,4 +1,6 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
# Copyright (C) 2006 OpenWrt.org
|
||||||
|
|
||||||
alias debug=${DEBUG:-:}
|
alias debug=${DEBUG:-:}
|
||||||
|
|
||||||
# newline
|
# newline
|
||||||
|
|
|
@ -1,4 +1,6 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
# Copyright (C) 2006 OpenWrt.org
|
||||||
|
|
||||||
find_name()
|
find_name()
|
||||||
{
|
{
|
||||||
for ifname in lan wan wifi ${ifnames}; do
|
for ifname in lan wan wifi ${ifnames}; do
|
||||||
|
|
|
@ -1,3 +1,6 @@
|
||||||
|
#!/bin/sh
|
||||||
|
# Copyright (C) 2006 OpenWrt.org
|
||||||
|
|
||||||
mount_storage() {
|
mount_storage() {
|
||||||
cd /dev/discs
|
cd /dev/discs
|
||||||
for dev in disc*; do
|
for dev in disc*; do
|
||||||
|
|
|
@ -1,4 +1,6 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
# Copyright (C) 2006 OpenWrt.org
|
||||||
|
|
||||||
. /etc/functions.sh
|
. /etc/functions.sh
|
||||||
|
|
||||||
[ -f /proc/mounts ] || /sbin/mount_root
|
[ -f /proc/mounts ] || /sbin/mount_root
|
||||||
|
|
|
@ -1,2 +1,4 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
# Copyright (C) 2006 OpenWrt.org
|
||||||
|
|
||||||
[ -d /www ] && httpd -p 80 -h /www -r OpenWrt
|
[ -d /www ] && httpd -p 80 -h /www -r OpenWrt
|
||||||
|
|
|
@ -1,2 +1,4 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
# Copyright (C) 2006 OpenWrt.org
|
||||||
|
|
||||||
if awk -F: '/^root:/ && $2 !~ /\!/ {exit 1}' /etc/passwd 2>/dev/null; then telnetd -l /bin/login; fi
|
if awk -F: '/^root:/ && $2 !~ /\!/ {exit 1}' /etc/passwd 2>/dev/null; then telnetd -l /bin/login; fi
|
||||||
|
|
|
@ -1,4 +1,6 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
# Copyright (C) 2006 OpenWrt.org
|
||||||
|
|
||||||
mkdir -p /var/spool/cron
|
mkdir -p /var/spool/cron
|
||||||
ln -s /etc/crontabs /var/spool/cron/crontabs
|
ln -s /etc/crontabs /var/spool/cron/crontabs
|
||||||
crond -c /etc/crontabs
|
crond -c /etc/crontabs
|
||||||
|
|
|
@ -1,4 +1,6 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
# Copyright (C) 2006 OpenWrt.org
|
||||||
|
|
||||||
sysctl -p >&-
|
sysctl -p >&-
|
||||||
|
|
||||||
# automagically run firstboot
|
# automagically run firstboot
|
||||||
|
|
|
@ -1,4 +1,6 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
# Copyright (C) 2006 OpenWrt.org
|
||||||
|
|
||||||
${FAILSAFE:+exit}
|
${FAILSAFE:+exit}
|
||||||
|
|
||||||
[ -f /etc/config/network ] && . /etc/config/network
|
[ -f /etc/config/network ] && . /etc/config/network
|
||||||
|
|
|
@ -1,4 +1,6 @@
|
||||||
#!/bin/ash
|
#!/bin/ash
|
||||||
|
# Copyright (C) 2006 OpenWrt.org
|
||||||
|
|
||||||
|
|
||||||
# allow env to override nvram
|
# allow env to override nvram
|
||||||
nvram () {
|
nvram () {
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
# Copyright (C) 2006 OpenWrt.org
|
||||||
|
|
||||||
# bypass the normal hotplug path for firmware loading
|
# bypass the normal hotplug path for firmware loading
|
||||||
# would otherwise cause problems with drivers like bcm43xx
|
# would otherwise cause problems with drivers like bcm43xx
|
||||||
|
|
|
@ -1,4 +1,6 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
# Copyright (C) 2006 OpenWrt.org
|
||||||
|
|
||||||
[ $# = 0 ] && { echo " $0 <group>"; exit; }
|
[ $# = 0 ] && { echo " $0 <group>"; exit; }
|
||||||
. /etc/functions.sh
|
. /etc/functions.sh
|
||||||
. /etc/config/network
|
. /etc/config/network
|
||||||
|
|
|
@ -1,4 +1,6 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
# Copyright (C) 2006 OpenWrt.org
|
||||||
|
|
||||||
[ $# = 0 ] && { echo " $0 <group>"; exit; }
|
[ $# = 0 ] && { echo " $0 <group>"; exit; }
|
||||||
. /etc/functions.sh
|
. /etc/functions.sh
|
||||||
. /etc/config/network
|
. /etc/config/network
|
||||||
|
|
|
@ -1,4 +1,6 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
# Copyright (C) 2006 OpenWrt.org
|
||||||
|
|
||||||
mount none /proc -t proc
|
mount none /proc -t proc
|
||||||
size=$(awk '/Mem:/ {l=5242880;print((s=$2/2)<l)?$2-l:s}' /proc/meminfo)
|
size=$(awk '/Mem:/ {l=5242880;print((s=$2/2)<l)?$2-l:s}' /proc/meminfo)
|
||||||
mount none /tmp -t tmpfs -o size=$size,nosuid,nodev,mode=1777
|
mount none /tmp -t tmpfs -o size=$size,nosuid,nodev,mode=1777
|
||||||
|
|
|
@ -1,4 +1,6 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
# Copyright (C) 2006 OpenWrt.org
|
||||||
|
|
||||||
. /etc/functions.sh
|
. /etc/functions.sh
|
||||||
|
|
||||||
config_get_bool() {
|
config_get_bool() {
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
|
# Copyright (C) 2006 OpenWrt.org
|
||||||
|
|
||||||
function portstr(type, str) {
|
function portstr(type, str) {
|
||||||
gsub(/-/, ":", str)
|
gsub(/-/, ":", str)
|
||||||
if (insmod_mport != 1) {
|
if (insmod_mport != 1) {
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
|
# Copyright (C) 2006 OpenWrt.org
|
||||||
|
|
||||||
{
|
{
|
||||||
line=$0
|
line=$0
|
||||||
gsub(/^[ \t]*/, "")
|
gsub(/^[ \t]*/, "")
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
# Network configuration file
|
# Network configuration file
|
||||||
|
# Copyright (C) 2006 OpenWrt.org
|
||||||
|
|
||||||
## LAN configuration
|
## LAN configuration
|
||||||
lan_ifname="eth0"
|
lan_ifname="eth0"
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
# Network configuration file
|
# Network configuration file
|
||||||
|
# Copyright (C) 2006 OpenWrt.org
|
||||||
|
|
||||||
## LAN configuration
|
## LAN configuration
|
||||||
lan_ifname="br0"
|
lan_ifname="br0"
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
|
# Copyright (C) 2006 OpenWrt.org
|
||||||
|
|
||||||
::sysinit:/etc/init.d/rcS
|
::sysinit:/etc/init.d/rcS
|
||||||
duart/0::askfirst:/bin/ash --login
|
duart/0::askfirst:/bin/ash --login
|
||||||
#tts/1::askfirst:/bin/ash --login
|
#tts/1::askfirst:/bin/ash --login
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
# Network configuration file
|
# Network configuration file
|
||||||
|
# Copyright (C) 2006 OpenWrt.org
|
||||||
|
|
||||||
## LAN configuration
|
## LAN configuration
|
||||||
lan_ifname="br0"
|
lan_ifname="br0"
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
# Network configuration file
|
# Network configuration file
|
||||||
|
# Copyright (C) 2006 OpenWrt.org
|
||||||
|
|
||||||
## LAN configuration
|
## LAN configuration
|
||||||
lan_ifname="br0"
|
lan_ifname="br0"
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
# Network configuration file
|
# Network configuration file
|
||||||
|
# Copyright (C) 2006 OpenWrt.org
|
||||||
|
|
||||||
## LAN configuration
|
## LAN configuration
|
||||||
lan_ifname="eth0"
|
lan_ifname="eth0"
|
||||||
|
|
Loading…
Reference in a new issue