summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorEric Andersen2004-03-15 08:29:22 +0000
committerEric Andersen2004-03-15 08:29:22 +0000
commitc7bda1ce659294d6e22c06e087f6f265983c7578 (patch)
tree4c6d2217f4d8306c59cf1096f8664e1cfd167213 /examples
parent8854004b41065b3d081af7f3df13a100b0c8bfbe (diff)
downloadbusybox-c7bda1ce659294d6e22c06e087f6f265983c7578.zip
busybox-c7bda1ce659294d6e22c06e087f6f265983c7578.tar.gz
Remove trailing whitespace. Update copyright to include 2004.
Diffstat (limited to 'examples')
-rw-r--r--examples/bootfloppy/bootfloppy.txt12
-rw-r--r--examples/bootfloppy/etc/profile2
-rwxr-xr-xexamples/bootfloppy/mkrootfs.sh4
-rw-r--r--examples/bootfloppy/syslinux.cfg2
-rw-r--r--examples/busybox.spec2
-rwxr-xr-xexamples/depmod.pl18
-rw-r--r--examples/inittab4
-rw-r--r--examples/udhcp/udhcpd.conf2
-rw-r--r--examples/undeb10
-rw-r--r--examples/unrpm4
10 files changed, 30 insertions, 30 deletions
diff --git a/examples/bootfloppy/bootfloppy.txt b/examples/bootfloppy/bootfloppy.txt
index 090ef04..16f2c13 100644
--- a/examples/bootfloppy/bootfloppy.txt
+++ b/examples/bootfloppy/bootfloppy.txt
@@ -38,13 +38,13 @@ Making a Root File System
The following steps will create a root file system.
- Create an empty file that you can format as a filesystem:
-
+
dd if=/dev/zero of=rootfs bs=1k count=4000
- Set up the rootfs file we just created to be used as a loop device (may not
- be necessary)
+ be necessary)
- losetup /dev/loop0 rootfs
+ losetup /dev/loop0 rootfs
- Format the rootfs file with a filesystem:
@@ -101,15 +101,15 @@ The following steps will create the boot floppy.
Note: You will need to have the mtools package installed beforehand.
- Insert a floppy in the drive and format it with an MSDOS filesystem:
-
+
mformat a:
(if the system doesn't know what device 'a:' is, look at /etc/mtools.conf)
- Run syslinux on the floppy:
-
+
syslinux -s /dev/fd0
-
+
(the -s stands for "safe, slow, and stupid" and should work better with
buggy BIOSes; it can be omitted)
diff --git a/examples/bootfloppy/etc/profile b/examples/bootfloppy/etc/profile
index e9b11e9..8a7c77d 100644
--- a/examples/bootfloppy/etc/profile
+++ b/examples/bootfloppy/etc/profile
@@ -4,5 +4,5 @@ echo
echo -n "Processing /etc/profile... "
# no-op
echo "Done"
-echo
+echo
diff --git a/examples/bootfloppy/mkrootfs.sh b/examples/bootfloppy/mkrootfs.sh
index e56d104..e79ed41 100755
--- a/examples/bootfloppy/mkrootfs.sh
+++ b/examples/bootfloppy/mkrootfs.sh
@@ -63,10 +63,10 @@ mount -o loop,exec rootfs $TARGET_DIR # must be root
# install uClibc
mkdir -p $TARGET_DIR/lib
cd $UCLIBC_DIR
-make INSTALL_DIR=
+make INSTALL_DIR=
cp -a libc.so* $BASE_DIR/$TARGET_DIR/lib
cp -a uClibc*.so $BASE_DIR/$TARGET_DIR/lib
-cp -a ld.so-1/d-link/ld-linux-uclibc.so* $BASE_DIR/$TARGET_DIR/lib
+cp -a ld.so-1/d-link/ld-linux-uclibc.so* $BASE_DIR/$TARGET_DIR/lib
cp -a ld.so-1/libdl/libdl.so* $BASE_DIR/$TARGET_DIR/lib
cp -a crypt/libcrypt.so* $BASE_DIR/$TARGET_DIR/lib
cd $BASE_DIR
diff --git a/examples/bootfloppy/syslinux.cfg b/examples/bootfloppy/syslinux.cfg
index 8d407ca..fa2677c 100644
--- a/examples/bootfloppy/syslinux.cfg
+++ b/examples/bootfloppy/syslinux.cfg
@@ -4,4 +4,4 @@ timeout 10
prompt 1
label linux
kernel linux
- append initrd=rootfs.gz root=/dev/ram0
+ append initrd=rootfs.gz root=/dev/ram0
diff --git a/examples/busybox.spec b/examples/busybox.spec
index 188b09b..3986436 100644
--- a/examples/busybox.spec
+++ b/examples/busybox.spec
@@ -39,6 +39,6 @@ make PREFIX=$RPM_BUILD_ROOT install
%Clean
rm -rf $RPM_BUILD_ROOT
-%Files
+%Files
%defattr(-,root,root)
/
diff --git a/examples/depmod.pl b/examples/depmod.pl
index ea29e88..9af1922 100755
--- a/examples/depmod.pl
+++ b/examples/depmod.pl
@@ -4,7 +4,7 @@
# Copyright (c) 2001 Erik Andersen <andersen@codepoet.org>
# Copyright (c) 2001 Stuart Hughes <stuarth@lineo.com>
# Copyright (c) 2002 Steven J. Hill <shill@broadcom.com>
-# This program is free software; you can redistribute it and/or modify it
+# This program is free software; you can redistribute it and/or modify it
# under the same terms as Perl itself.
# TODO -- use strict mode...
@@ -54,13 +54,13 @@ if($basedir !~ m-/lib/modules-) {
warn "WARNING: base directory does not match ..../lib/modules\n";
}
-# Find the list of .o files living under $basedir
+# Find the list of .o files living under $basedir
#if ($verbose) { printf "Locating all modules\n"; }
my($ofile) = "";
my($file) = "";
my(@liblist) = ();
-find sub {
- if ( -f $_ && ! -d $_ ) {
+find sub {
+ if ( -f $_ && ! -d $_ ) {
$file = $File::Find::name;
if ( $file =~ /.o$/ ) {
push(@liblist, $file);
@@ -118,14 +118,14 @@ foreach $obj ( @liblist, $kernel ){
foreach $module (keys %$dep) {
$mod->{$module} = {};
foreach (@{$dep->{$module}}) {
- if( $exp->{$_} ) {
+ if( $exp->{$_} ) {
warn "resolved symbol $_ in file $exp->{$_}\n" if $verbose;
next if $exp->{$_} =~ /vmlinux/;
$mod->{$module}{$exp->{$_}} = 1;
} else {
warn "unresolved symbol $_ in file $module\n";
}
- }
+ }
}
# resolve the dependancies for each module
@@ -222,9 +222,9 @@ Be verbose (not implemented)
=head1 COPYRIGHT
Copyright (c) 2001 David Schleef <ds@schleef.org>
-Copyright (c) 2001 Erik Andersen <andersen@lineo.com>
+Copyright (c) 2001 Erik Andersen <andersen@codepoet.org>
Copyright (c) 2001 Stuart Hughes <stuarth@lineo.com>
-This program is free software; you can redistribute it and/or modify it
+This program is free software; you can redistribute it and/or modify it
under the same terms as Perl itself.
=head1 AUTHOR
@@ -233,5 +233,5 @@ David Schleef <ds@schleef.org>
=cut
-# $Id: depmod.pl,v 1.3 2003/07/14 21:20:51 andersen Exp $
+# $Id: depmod.pl,v 1.4 2004/03/15 08:28:33 andersen Exp $
diff --git a/examples/inittab b/examples/inittab
index 38df924..ce711ac 100644
--- a/examples/inittab
+++ b/examples/inittab
@@ -1,6 +1,6 @@
# /etc/inittab init(8) configuration for BusyBox
#
-# Copyright (C) 1999-2003 by Erik Andersen <andersen@codepoet.org>
+# Copyright (C) 1999-2004 by Erik Andersen <andersen@codepoet.org>
#
#
# Note, BusyBox init doesn't support runlevels. The runlevels field is
@@ -22,7 +22,7 @@
#
# <runlevels>: The runlevels field is completely ignored.
#
-# <action>: Valid actions include: sysinit, respawn, askfirst, wait, once,
+# <action>: Valid actions include: sysinit, respawn, askfirst, wait, once,
# restart, ctrlaltdel, and shutdown.
#
# Note: askfirst acts just like respawn, but before running the specified
diff --git a/examples/udhcp/udhcpd.conf b/examples/udhcp/udhcpd.conf
index 2b93e0f..00105b3 100644
--- a/examples/udhcp/udhcpd.conf
+++ b/examples/udhcp/udhcpd.conf
@@ -33,7 +33,7 @@ interface eth0 #default: eth0
#auto_time 7200 #default: 7200 (2 hours)
-# The amount of time that an IP will be reserved (leased) for if a
+# The amount of time that an IP will be reserved (leased) for if a
# DHCP decline message is received (seconds).
#decline_time 3600 #default: 3600 (1 hour)
diff --git a/examples/undeb b/examples/undeb
index a72e1e2..37104e9 100644
--- a/examples/undeb
+++ b/examples/undeb
@@ -8,12 +8,12 @@ usage() {
echo "Usage: undeb -c package.deb <Print control file info>"
echo " undeb -l package.deb <List contents of deb package>"
echo " undeb -x package.deb /foo/boo <Extract deb package to this directory,"
-echo " put . for current directory>"
+echo " put . for current directory>"
exit
}
deb=$2
-
+
exist() {
if [ "$deb" = "" ]; then
usage
@@ -30,11 +30,11 @@ exist
type more >/dev/null 2>&1 && pager=more
type less >/dev/null 2>&1 && pager=less
[ "$pager" = "" ] && echo "No pager found!" && exit
-(ar -p $deb control.tar.gz | tar -xzO *control ; echo -e "\nPress enter to scroll, q to Quit!\n" ; ar -p $deb data.tar.gz | tar -tzv) | $pager
+(ar -p $deb control.tar.gz | tar -xzO *control ; echo -e "\nPress enter to scroll, q to Quit!\n" ; ar -p $deb data.tar.gz | tar -tzv) | $pager
exit
elif [ "$1" = "-c" ]; then
exist
-ar -p $deb control.tar.gz | tar -xzO *control
+ar -p $deb control.tar.gz | tar -xzO *control
exit
elif [ "$1" = "-x" ]; then
exist
@@ -44,7 +44,7 @@ elif [ ! -d "$3" ]; then
echo "No such directory $3!"
exit
fi
-ar -p $deb data.tar.gz | tar -xzvpf - -C $3 || exit
+ar -p $deb data.tar.gz | tar -xzvpf - -C $3 || exit
echo
echo "Extracted $deb to $3!"
exit
diff --git a/examples/unrpm b/examples/unrpm
index 376286a..7fd3676 100644
--- a/examples/unrpm
+++ b/examples/unrpm
@@ -7,12 +7,12 @@
usage() {
echo "Usage: unrpm -l package.rpm <List contents of rpm package>"
echo " unrpm -x package.rpm /foo/boo <Extract rpm package to this directory,"
-echo " put . for current directory>"
+echo " put . for current directory>"
exit
}
rpm=$2
-
+
exist() {
if [ "$rpm" = "" ]; then
usage