From c7bda1ce659294d6e22c06e087f6f265983c7578 Mon Sep 17 00:00:00 2001 From: Eric Andersen Date: Mon, 15 Mar 2004 08:29:22 +0000 Subject: Remove trailing whitespace. Update copyright to include 2004. --- examples/bootfloppy/bootfloppy.txt | 12 ++++++------ examples/bootfloppy/etc/profile | 2 +- examples/bootfloppy/mkrootfs.sh | 4 ++-- examples/bootfloppy/syslinux.cfg | 2 +- examples/busybox.spec | 2 +- examples/depmod.pl | 18 +++++++++--------- examples/inittab | 4 ++-- examples/udhcp/udhcpd.conf | 2 +- examples/undeb | 10 +++++----- examples/unrpm | 4 ++-- 10 files changed, 30 insertions(+), 30 deletions(-) (limited to 'examples') 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 # Copyright (c) 2001 Stuart Hughes # Copyright (c) 2002 Steven J. Hill -# 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 -Copyright (c) 2001 Erik Andersen +Copyright (c) 2001 Erik Andersen Copyright (c) 2001 Stuart Hughes -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 =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 +# Copyright (C) 1999-2004 by Erik Andersen # # # Note, BusyBox init doesn't support runlevels. The runlevels field is @@ -22,7 +22,7 @@ # # : The runlevels field is completely ignored. # -# : Valid actions include: sysinit, respawn, askfirst, wait, once, +# : 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 " echo " undeb -l package.deb " echo " undeb -x package.deb /foo/boo " +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 " echo " unrpm -x package.rpm /foo/boo " +echo " put . for current directory>" exit } rpm=$2 - + exist() { if [ "$rpm" = "" ]; then usage -- cgit v1.1