aboutsummaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
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 090ef0499..16f2c130f 100644
--- a/examples/bootfloppy/bootfloppy.txt
+++ b/examples/bootfloppy/bootfloppy.txt
@@ -38,13 +38,13 @@ Making a Root File System
38The following steps will create a root file system. 38The following steps will create a root file system.
39 39
40 - Create an empty file that you can format as a filesystem: 40 - Create an empty file that you can format as a filesystem:
41 41
42 dd if=/dev/zero of=rootfs bs=1k count=4000 42 dd if=/dev/zero of=rootfs bs=1k count=4000
43 43
44 - Set up the rootfs file we just created to be used as a loop device (may not 44 - Set up the rootfs file we just created to be used as a loop device (may not
45 be necessary) 45 be necessary)
46 46
47 losetup /dev/loop0 rootfs 47 losetup /dev/loop0 rootfs
48 48
49 - Format the rootfs file with a filesystem: 49 - Format the rootfs file with a filesystem:
50 50
@@ -101,15 +101,15 @@ The following steps will create the boot floppy.
101Note: You will need to have the mtools package installed beforehand. 101Note: You will need to have the mtools package installed beforehand.
102 102
103 - Insert a floppy in the drive and format it with an MSDOS filesystem: 103 - Insert a floppy in the drive and format it with an MSDOS filesystem:
104 104
105 mformat a: 105 mformat a:
106 106
107 (if the system doesn't know what device 'a:' is, look at /etc/mtools.conf) 107 (if the system doesn't know what device 'a:' is, look at /etc/mtools.conf)
108 108
109 - Run syslinux on the floppy: 109 - Run syslinux on the floppy:
110 110
111 syslinux -s /dev/fd0 111 syslinux -s /dev/fd0
112 112
113 (the -s stands for "safe, slow, and stupid" and should work better with 113 (the -s stands for "safe, slow, and stupid" and should work better with
114 buggy BIOSes; it can be omitted) 114 buggy BIOSes; it can be omitted)
115 115
diff --git a/examples/bootfloppy/etc/profile b/examples/bootfloppy/etc/profile
index e9b11e90a..8a7c77d78 100644
--- a/examples/bootfloppy/etc/profile
+++ b/examples/bootfloppy/etc/profile
@@ -4,5 +4,5 @@ echo
4echo -n "Processing /etc/profile... " 4echo -n "Processing /etc/profile... "
5# no-op 5# no-op
6echo "Done" 6echo "Done"
7echo 7echo
8 8
diff --git a/examples/bootfloppy/mkrootfs.sh b/examples/bootfloppy/mkrootfs.sh
index e56d10469..e79ed418e 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
63# install uClibc 63# install uClibc
64mkdir -p $TARGET_DIR/lib 64mkdir -p $TARGET_DIR/lib
65cd $UCLIBC_DIR 65cd $UCLIBC_DIR
66make INSTALL_DIR= 66make INSTALL_DIR=
67cp -a libc.so* $BASE_DIR/$TARGET_DIR/lib 67cp -a libc.so* $BASE_DIR/$TARGET_DIR/lib
68cp -a uClibc*.so $BASE_DIR/$TARGET_DIR/lib 68cp -a uClibc*.so $BASE_DIR/$TARGET_DIR/lib
69cp -a ld.so-1/d-link/ld-linux-uclibc.so* $BASE_DIR/$TARGET_DIR/lib 69cp -a ld.so-1/d-link/ld-linux-uclibc.so* $BASE_DIR/$TARGET_DIR/lib
70cp -a ld.so-1/libdl/libdl.so* $BASE_DIR/$TARGET_DIR/lib 70cp -a ld.so-1/libdl/libdl.so* $BASE_DIR/$TARGET_DIR/lib
71cp -a crypt/libcrypt.so* $BASE_DIR/$TARGET_DIR/lib 71cp -a crypt/libcrypt.so* $BASE_DIR/$TARGET_DIR/lib
72cd $BASE_DIR 72cd $BASE_DIR
diff --git a/examples/bootfloppy/syslinux.cfg b/examples/bootfloppy/syslinux.cfg
index 8d407cad4..fa2677ca8 100644
--- a/examples/bootfloppy/syslinux.cfg
+++ b/examples/bootfloppy/syslinux.cfg
@@ -4,4 +4,4 @@ timeout 10
4prompt 1 4prompt 1
5label linux 5label linux
6 kernel linux 6 kernel linux
7 append initrd=rootfs.gz root=/dev/ram0 7 append initrd=rootfs.gz root=/dev/ram0
diff --git a/examples/busybox.spec b/examples/busybox.spec
index 188b09b29..3986436c1 100644
--- a/examples/busybox.spec
+++ b/examples/busybox.spec
@@ -39,6 +39,6 @@ make PREFIX=$RPM_BUILD_ROOT install
39%Clean 39%Clean
40rm -rf $RPM_BUILD_ROOT 40rm -rf $RPM_BUILD_ROOT
41 41
42%Files 42%Files
43%defattr(-,root,root) 43%defattr(-,root,root)
44/ 44/
diff --git a/examples/depmod.pl b/examples/depmod.pl
index ea29e8883..9af192208 100755
--- a/examples/depmod.pl
+++ b/examples/depmod.pl
@@ -4,7 +4,7 @@
4# Copyright (c) 2001 Erik Andersen <andersen@codepoet.org> 4# Copyright (c) 2001 Erik Andersen <andersen@codepoet.org>
5# Copyright (c) 2001 Stuart Hughes <stuarth@lineo.com> 5# Copyright (c) 2001 Stuart Hughes <stuarth@lineo.com>
6# Copyright (c) 2002 Steven J. Hill <shill@broadcom.com> 6# Copyright (c) 2002 Steven J. Hill <shill@broadcom.com>
7# This program is free software; you can redistribute it and/or modify it 7# This program is free software; you can redistribute it and/or modify it
8# under the same terms as Perl itself. 8# under the same terms as Perl itself.
9 9
10# TODO -- use strict mode... 10# TODO -- use strict mode...
@@ -54,13 +54,13 @@ if($basedir !~ m-/lib/modules-) {
54 warn "WARNING: base directory does not match ..../lib/modules\n"; 54 warn "WARNING: base directory does not match ..../lib/modules\n";
55} 55}
56 56
57# Find the list of .o files living under $basedir 57# Find the list of .o files living under $basedir
58#if ($verbose) { printf "Locating all modules\n"; } 58#if ($verbose) { printf "Locating all modules\n"; }
59my($ofile) = ""; 59my($ofile) = "";
60my($file) = ""; 60my($file) = "";
61my(@liblist) = (); 61my(@liblist) = ();
62find sub { 62find sub {
63 if ( -f $_ && ! -d $_ ) { 63 if ( -f $_ && ! -d $_ ) {
64 $file = $File::Find::name; 64 $file = $File::Find::name;
65 if ( $file =~ /.o$/ ) { 65 if ( $file =~ /.o$/ ) {
66 push(@liblist, $file); 66 push(@liblist, $file);
@@ -118,14 +118,14 @@ foreach $obj ( @liblist, $kernel ){
118foreach $module (keys %$dep) { 118foreach $module (keys %$dep) {
119 $mod->{$module} = {}; 119 $mod->{$module} = {};
120 foreach (@{$dep->{$module}}) { 120 foreach (@{$dep->{$module}}) {
121 if( $exp->{$_} ) { 121 if( $exp->{$_} ) {
122 warn "resolved symbol $_ in file $exp->{$_}\n" if $verbose; 122 warn "resolved symbol $_ in file $exp->{$_}\n" if $verbose;
123 next if $exp->{$_} =~ /vmlinux/; 123 next if $exp->{$_} =~ /vmlinux/;
124 $mod->{$module}{$exp->{$_}} = 1; 124 $mod->{$module}{$exp->{$_}} = 1;
125 } else { 125 } else {
126 warn "unresolved symbol $_ in file $module\n"; 126 warn "unresolved symbol $_ in file $module\n";
127 } 127 }
128 } 128 }
129} 129}
130 130
131# resolve the dependancies for each module 131# resolve the dependancies for each module
@@ -222,9 +222,9 @@ Be verbose (not implemented)
222=head1 COPYRIGHT 222=head1 COPYRIGHT
223 223
224Copyright (c) 2001 David Schleef <ds@schleef.org> 224Copyright (c) 2001 David Schleef <ds@schleef.org>
225Copyright (c) 2001 Erik Andersen <andersen@lineo.com> 225Copyright (c) 2001 Erik Andersen <andersen@codepoet.org>
226Copyright (c) 2001 Stuart Hughes <stuarth@lineo.com> 226Copyright (c) 2001 Stuart Hughes <stuarth@lineo.com>
227This program is free software; you can redistribute it and/or modify it 227This program is free software; you can redistribute it and/or modify it
228under the same terms as Perl itself. 228under the same terms as Perl itself.
229 229
230=head1 AUTHOR 230=head1 AUTHOR
@@ -233,5 +233,5 @@ David Schleef <ds@schleef.org>
233 233
234=cut 234=cut
235 235
236# $Id: depmod.pl,v 1.3 2003/07/14 21:20:51 andersen Exp $ 236# $Id: depmod.pl,v 1.4 2004/03/15 08:28:33 andersen Exp $
237 237
diff --git a/examples/inittab b/examples/inittab
index 38df92497..ce711ac6c 100644
--- a/examples/inittab
+++ b/examples/inittab
@@ -1,6 +1,6 @@
1# /etc/inittab init(8) configuration for BusyBox 1# /etc/inittab init(8) configuration for BusyBox
2# 2#
3# Copyright (C) 1999-2003 by Erik Andersen <andersen@codepoet.org> 3# Copyright (C) 1999-2004 by Erik Andersen <andersen@codepoet.org>
4# 4#
5# 5#
6# Note, BusyBox init doesn't support runlevels. The runlevels field is 6# Note, BusyBox init doesn't support runlevels. The runlevels field is
@@ -22,7 +22,7 @@
22# 22#
23# <runlevels>: The runlevels field is completely ignored. 23# <runlevels>: The runlevels field is completely ignored.
24# 24#
25# <action>: Valid actions include: sysinit, respawn, askfirst, wait, once, 25# <action>: Valid actions include: sysinit, respawn, askfirst, wait, once,
26# restart, ctrlaltdel, and shutdown. 26# restart, ctrlaltdel, and shutdown.
27# 27#
28# Note: askfirst acts just like respawn, but before running the specified 28# Note: askfirst acts just like respawn, but before running the specified
diff --git a/examples/udhcp/udhcpd.conf b/examples/udhcp/udhcpd.conf
index 2b93e0fae..00105b3e5 100644
--- a/examples/udhcp/udhcpd.conf
+++ b/examples/udhcp/udhcpd.conf
@@ -33,7 +33,7 @@ interface eth0 #default: eth0
33#auto_time 7200 #default: 7200 (2 hours) 33#auto_time 7200 #default: 7200 (2 hours)
34 34
35 35
36# The amount of time that an IP will be reserved (leased) for if a 36# The amount of time that an IP will be reserved (leased) for if a
37# DHCP decline message is received (seconds). 37# DHCP decline message is received (seconds).
38 38
39#decline_time 3600 #default: 3600 (1 hour) 39#decline_time 3600 #default: 3600 (1 hour)
diff --git a/examples/undeb b/examples/undeb
index a72e1e2ba..37104e9d8 100644
--- a/examples/undeb
+++ b/examples/undeb
@@ -8,12 +8,12 @@ usage() {
8echo "Usage: undeb -c package.deb <Print control file info>" 8echo "Usage: undeb -c package.deb <Print control file info>"
9echo " undeb -l package.deb <List contents of deb package>" 9echo " undeb -l package.deb <List contents of deb package>"
10echo " undeb -x package.deb /foo/boo <Extract deb package to this directory," 10echo " undeb -x package.deb /foo/boo <Extract deb package to this directory,"
11echo " put . for current directory>" 11echo " put . for current directory>"
12exit 12exit
13} 13}
14 14
15deb=$2 15deb=$2
16 16
17exist() { 17exist() {
18if [ "$deb" = "" ]; then 18if [ "$deb" = "" ]; then
19usage 19usage
@@ -30,11 +30,11 @@ exist
30type more >/dev/null 2>&1 && pager=more 30type more >/dev/null 2>&1 && pager=more
31type less >/dev/null 2>&1 && pager=less 31type less >/dev/null 2>&1 && pager=less
32[ "$pager" = "" ] && echo "No pager found!" && exit 32[ "$pager" = "" ] && echo "No pager found!" && exit
33(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 33(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
34exit 34exit
35elif [ "$1" = "-c" ]; then 35elif [ "$1" = "-c" ]; then
36exist 36exist
37ar -p $deb control.tar.gz | tar -xzO *control 37ar -p $deb control.tar.gz | tar -xzO *control
38exit 38exit
39elif [ "$1" = "-x" ]; then 39elif [ "$1" = "-x" ]; then
40exist 40exist
@@ -44,7 +44,7 @@ elif [ ! -d "$3" ]; then
44echo "No such directory $3!" 44echo "No such directory $3!"
45exit 45exit
46fi 46fi
47ar -p $deb data.tar.gz | tar -xzvpf - -C $3 || exit 47ar -p $deb data.tar.gz | tar -xzvpf - -C $3 || exit
48echo 48echo
49echo "Extracted $deb to $3!" 49echo "Extracted $deb to $3!"
50exit 50exit
diff --git a/examples/unrpm b/examples/unrpm
index 376286a6f..7fd3676f6 100644
--- a/examples/unrpm
+++ b/examples/unrpm
@@ -7,12 +7,12 @@
7usage() { 7usage() {
8echo "Usage: unrpm -l package.rpm <List contents of rpm package>" 8echo "Usage: unrpm -l package.rpm <List contents of rpm package>"
9echo " unrpm -x package.rpm /foo/boo <Extract rpm package to this directory," 9echo " unrpm -x package.rpm /foo/boo <Extract rpm package to this directory,"
10echo " put . for current directory>" 10echo " put . for current directory>"
11exit 11exit
12} 12}
13 13
14rpm=$2 14rpm=$2
15 15
16exist() { 16exist() {
17if [ "$rpm" = "" ]; then 17if [ "$rpm" = "" ]; then
18usage 18usage