1
0
mirror of git://projects.qi-hardware.com/openwrt-xburst.git synced 2024-11-23 22:05:20 +02:00

add copyright headers to base-files scripts and config files

git-svn-id: svn://svn.openwrt.org/openwrt/branches/buildroot-ng/openwrt@4090 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
nbd 2006-06-27 00:36:13 +00:00
parent da030183af
commit ed5ef674d1
40 changed files with 70 additions and 3 deletions

View File

@ -1,5 +1,5 @@
#!/bin/sh
# $Id$
# Copyright (C) 2006 OpenWrt.org
rom=$(awk '/squashfs/ {print $2}' /proc/mounts)
jffs=$(awk '/jffs2/ {print $2}' /proc/mounts)

View File

@ -1,4 +1,6 @@
# Network configuration file
# Copyright (C) 2006 OpenWrt.org
## LAN configuration
lan_ifname="eth0"

View File

@ -1,4 +1,5 @@
# Network configuration file
# Copyright (C) 2006 OpenWrt.org
## LAN configuration
lan_ifname="br0"

View File

@ -1,4 +1,6 @@
#!/bin/sh
# Copyright (C) 2006 OpenWrt.org
mount none /proc -t proc
size=$(awk '/Mem:/ {l=5242880;print((s=$2/2)<l)?$2-l:s}' /proc/meminfo)
mount none /tmp -t tmpfs -o size=$size

View File

@ -1,5 +1,5 @@
#!/bin/sh
# $Id$
# Copyright (C) 2006 OpenWrt.org
rom=$(awk '/squashfs/ {print $2}' /proc/mounts)
jffs=$(awk '/jffs2/ {print $2}' /proc/mounts)

View File

@ -1,3 +1,5 @@
# Copyright (C) 2006 OpenWrt.org
config wifi-device wl0
option type broadcom
option channel 5

View File

@ -1,4 +1,6 @@
#!/bin/sh
# Copyright (C) 2006 OpenWrt.org
setup_wl()
{
[ -f /proc/net/wl0 ] && {

View File

@ -1,4 +1,6 @@
#!/bin/sh
# Copyright (C) 2006 OpenWrt.org
[ -e /etc/config/network ] && exit 0
mkdir -p /etc/config

View File

@ -1,4 +1,6 @@
#!/bin/sh
# Copyright (C) 2006 OpenWrt.org
export PATH=/bin:/sbin:/usr/bin:/usr/sbin
mount none /proc -t proc

View File

@ -1,4 +1,6 @@
#!/bin/sh
# Copyright (C) 2006 OpenWrt.org
is_dirty() {
grep Broadcom /proc/cpuinfo >&- || return 1
OFFSET="$(($(hexdump -v /dev/mtdblock/1 -s 20 -n 2 -e '"%d"')-1))"

View File

@ -1,5 +1,5 @@
#!/bin/sh
# $Id$
# Copyright (C) 2006 OpenWrt.org
rom=$(awk '/squashfs/ {print $2}' /proc/mounts)
jffs=$(awk '/jffs2/ {print $2}' /proc/mounts)

View File

@ -1,4 +1,6 @@
#!/bin/sh
# Copyright (C) 2006 OpenWrt.org
setup_eth()
{
[ -d /proc/switch ] || {

View File

@ -1,4 +1,6 @@
#!/bin/sh
# Copyright (C) 2006 OpenWrt.org
[ -e /etc/config/network ] && exit 0
mkdir -p /etc/config

View File

@ -1,4 +1,6 @@
#!/bin/sh
# Copyright (C) 2006 OpenWrt.org
export PATH=/bin:/sbin:/usr/bin:/usr/sbin
mount none /proc -t proc

View File

@ -1,4 +1,6 @@
#!/bin/sh
# Copyright (C) 2006 OpenWrt.org
is_dirty() {
grep Broadcom /proc/cpuinfo >&- || return 1
OFFSET="$(($(hexdump -v /dev/mtdblock/1 -s 20 -n 2 -e '"%d"')-1))"

View File

@ -1,4 +1,5 @@
#!/bin/sh
# Copyright (C) 2006 OpenWrt.org
awk -f /usr/lib/common.awk -f - $* <<EOF
BEGIN {

View File

@ -1,4 +1,6 @@
#!/bin/sh
# Copyright (C) 2006 OpenWrt.org
grep '^root:[^!]' /etc/passwd >&- 2>&-
[ "$?" = "0" -a -z "$FAILSAFE" ] &&
{

View File

@ -1,4 +1,6 @@
#!/bin/sh
# Copyright (C) 2006 OpenWrt.org
alias debug=${DEBUG:-:}
# newline

View File

@ -1,4 +1,6 @@
#!/bin/sh
# Copyright (C) 2006 OpenWrt.org
find_name()
{
for ifname in lan wan wifi ${ifnames}; do

View File

@ -1,3 +1,6 @@
#!/bin/sh
# Copyright (C) 2006 OpenWrt.org
mount_storage() {
cd /dev/discs
for dev in disc*; do

View File

@ -1,4 +1,6 @@
#!/bin/sh
# Copyright (C) 2006 OpenWrt.org
. /etc/functions.sh
[ -f /proc/mounts ] || /sbin/mount_root

View File

@ -1,2 +1,4 @@
#!/bin/sh
# Copyright (C) 2006 OpenWrt.org
[ -d /www ] && httpd -p 80 -h /www -r OpenWrt

View File

@ -1,2 +1,4 @@
#!/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

View File

@ -1,4 +1,6 @@
#!/bin/sh
# Copyright (C) 2006 OpenWrt.org
mkdir -p /var/spool/cron
ln -s /etc/crontabs /var/spool/cron/crontabs
crond -c /etc/crontabs

View File

@ -1,4 +1,6 @@
#!/bin/sh
# Copyright (C) 2006 OpenWrt.org
sysctl -p >&-
# automagically run firstboot

View File

@ -1,4 +1,6 @@
#!/bin/sh
# Copyright (C) 2006 OpenWrt.org
${FAILSAFE:+exit}
[ -f /etc/config/network ] && . /etc/config/network

View File

@ -1,4 +1,6 @@
#!/bin/ash
# Copyright (C) 2006 OpenWrt.org
# allow env to override nvram
nvram () {

View File

@ -1,4 +1,5 @@
#!/bin/sh
# Copyright (C) 2006 OpenWrt.org
# bypass the normal hotplug path for firmware loading
# would otherwise cause problems with drivers like bcm43xx

View File

@ -1,4 +1,6 @@
#!/bin/sh
# Copyright (C) 2006 OpenWrt.org
[ $# = 0 ] && { echo " $0 <group>"; exit; }
. /etc/functions.sh
. /etc/config/network

View File

@ -1,4 +1,6 @@
#!/bin/sh
# Copyright (C) 2006 OpenWrt.org
[ $# = 0 ] && { echo " $0 <group>"; exit; }
. /etc/functions.sh
. /etc/config/network

View File

@ -1,4 +1,6 @@
#!/bin/sh
# Copyright (C) 2006 OpenWrt.org
mount none /proc -t proc
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

View File

@ -1,4 +1,6 @@
#!/bin/sh
# Copyright (C) 2006 OpenWrt.org
. /etc/functions.sh
config_get_bool() {

View File

@ -1,3 +1,5 @@
# Copyright (C) 2006 OpenWrt.org
function portstr(type, str) {
gsub(/-/, ":", str)
if (insmod_mport != 1) {

View File

@ -1,3 +1,5 @@
# Copyright (C) 2006 OpenWrt.org
{
line=$0
gsub(/^[ \t]*/, "")

View File

@ -1,4 +1,5 @@
# Network configuration file
# Copyright (C) 2006 OpenWrt.org
## LAN configuration
lan_ifname="eth0"

View File

@ -1,4 +1,5 @@
# Network configuration file
# Copyright (C) 2006 OpenWrt.org
## LAN configuration
lan_ifname="br0"

View File

@ -1,3 +1,5 @@
# Copyright (C) 2006 OpenWrt.org
::sysinit:/etc/init.d/rcS
duart/0::askfirst:/bin/ash --login
#tts/1::askfirst:/bin/ash --login

View File

@ -1,4 +1,5 @@
# Network configuration file
# Copyright (C) 2006 OpenWrt.org
## LAN configuration
lan_ifname="br0"

View File

@ -1,4 +1,5 @@
# Network configuration file
# Copyright (C) 2006 OpenWrt.org
## LAN configuration
lan_ifname="br0"

View File

@ -1,4 +1,5 @@
# Network configuration file
# Copyright (C) 2006 OpenWrt.org
## LAN configuration
lan_ifname="eth0"