diff options
Diffstat (limited to 'examples')
-rw-r--r-- | examples/bootfloppy/bootfloppy.txt | 12 | ||||
-rw-r--r-- | examples/bootfloppy/etc/profile | 2 | ||||
-rwxr-xr-x | examples/bootfloppy/mkrootfs.sh | 4 | ||||
-rw-r--r-- | examples/bootfloppy/syslinux.cfg | 2 | ||||
-rw-r--r-- | examples/busybox.spec | 2 | ||||
-rwxr-xr-x | examples/depmod.pl | 18 | ||||
-rw-r--r-- | examples/inittab | 4 | ||||
-rw-r--r-- | examples/udhcp/udhcpd.conf | 2 | ||||
-rw-r--r-- | examples/undeb | 10 | ||||
-rw-r--r-- | examples/unrpm | 4 |
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 | |||
38 | The following steps will create a root file system. | 38 | The 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. | |||
101 | Note: You will need to have the mtools package installed beforehand. | 101 | Note: 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 | |||
4 | echo -n "Processing /etc/profile... " | 4 | echo -n "Processing /etc/profile... " |
5 | # no-op | 5 | # no-op |
6 | echo "Done" | 6 | echo "Done" |
7 | echo | 7 | echo |
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 |
64 | mkdir -p $TARGET_DIR/lib | 64 | mkdir -p $TARGET_DIR/lib |
65 | cd $UCLIBC_DIR | 65 | cd $UCLIBC_DIR |
66 | make INSTALL_DIR= | 66 | make INSTALL_DIR= |
67 | cp -a libc.so* $BASE_DIR/$TARGET_DIR/lib | 67 | cp -a libc.so* $BASE_DIR/$TARGET_DIR/lib |
68 | cp -a uClibc*.so $BASE_DIR/$TARGET_DIR/lib | 68 | cp -a uClibc*.so $BASE_DIR/$TARGET_DIR/lib |
69 | cp -a ld.so-1/d-link/ld-linux-uclibc.so* $BASE_DIR/$TARGET_DIR/lib | 69 | cp -a ld.so-1/d-link/ld-linux-uclibc.so* $BASE_DIR/$TARGET_DIR/lib |
70 | cp -a ld.so-1/libdl/libdl.so* $BASE_DIR/$TARGET_DIR/lib | 70 | cp -a ld.so-1/libdl/libdl.so* $BASE_DIR/$TARGET_DIR/lib |
71 | cp -a crypt/libcrypt.so* $BASE_DIR/$TARGET_DIR/lib | 71 | cp -a crypt/libcrypt.so* $BASE_DIR/$TARGET_DIR/lib |
72 | cd $BASE_DIR | 72 | cd $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 | |||
4 | prompt 1 | 4 | prompt 1 |
5 | label linux | 5 | label 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 |
40 | rm -rf $RPM_BUILD_ROOT | 40 | rm -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"; } |
59 | my($ofile) = ""; | 59 | my($ofile) = ""; |
60 | my($file) = ""; | 60 | my($file) = ""; |
61 | my(@liblist) = (); | 61 | my(@liblist) = (); |
62 | find sub { | 62 | find 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 ){ | |||
118 | foreach $module (keys %$dep) { | 118 | foreach $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 | ||
224 | Copyright (c) 2001 David Schleef <ds@schleef.org> | 224 | Copyright (c) 2001 David Schleef <ds@schleef.org> |
225 | Copyright (c) 2001 Erik Andersen <andersen@lineo.com> | 225 | Copyright (c) 2001 Erik Andersen <andersen@codepoet.org> |
226 | Copyright (c) 2001 Stuart Hughes <stuarth@lineo.com> | 226 | Copyright (c) 2001 Stuart Hughes <stuarth@lineo.com> |
227 | This program is free software; you can redistribute it and/or modify it | 227 | This program is free software; you can redistribute it and/or modify it |
228 | under the same terms as Perl itself. | 228 | under 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() { | |||
8 | echo "Usage: undeb -c package.deb <Print control file info>" | 8 | echo "Usage: undeb -c package.deb <Print control file info>" |
9 | echo " undeb -l package.deb <List contents of deb package>" | 9 | echo " undeb -l package.deb <List contents of deb package>" |
10 | echo " undeb -x package.deb /foo/boo <Extract deb package to this directory," | 10 | echo " undeb -x package.deb /foo/boo <Extract deb package to this directory," |
11 | echo " put . for current directory>" | 11 | echo " put . for current directory>" |
12 | exit | 12 | exit |
13 | } | 13 | } |
14 | 14 | ||
15 | deb=$2 | 15 | deb=$2 |
16 | 16 | ||
17 | exist() { | 17 | exist() { |
18 | if [ "$deb" = "" ]; then | 18 | if [ "$deb" = "" ]; then |
19 | usage | 19 | usage |
@@ -30,11 +30,11 @@ exist | |||
30 | type more >/dev/null 2>&1 && pager=more | 30 | type more >/dev/null 2>&1 && pager=more |
31 | type less >/dev/null 2>&1 && pager=less | 31 | type 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 |
34 | exit | 34 | exit |
35 | elif [ "$1" = "-c" ]; then | 35 | elif [ "$1" = "-c" ]; then |
36 | exist | 36 | exist |
37 | ar -p $deb control.tar.gz | tar -xzO *control | 37 | ar -p $deb control.tar.gz | tar -xzO *control |
38 | exit | 38 | exit |
39 | elif [ "$1" = "-x" ]; then | 39 | elif [ "$1" = "-x" ]; then |
40 | exist | 40 | exist |
@@ -44,7 +44,7 @@ elif [ ! -d "$3" ]; then | |||
44 | echo "No such directory $3!" | 44 | echo "No such directory $3!" |
45 | exit | 45 | exit |
46 | fi | 46 | fi |
47 | ar -p $deb data.tar.gz | tar -xzvpf - -C $3 || exit | 47 | ar -p $deb data.tar.gz | tar -xzvpf - -C $3 || exit |
48 | echo | 48 | echo |
49 | echo "Extracted $deb to $3!" | 49 | echo "Extracted $deb to $3!" |
50 | exit | 50 | exit |
diff --git a/examples/unrpm b/examples/unrpm index 376286a6f..7fd3676f6 100644 --- a/examples/unrpm +++ b/examples/unrpm | |||
@@ -7,12 +7,12 @@ | |||
7 | usage() { | 7 | usage() { |
8 | echo "Usage: unrpm -l package.rpm <List contents of rpm package>" | 8 | echo "Usage: unrpm -l package.rpm <List contents of rpm package>" |
9 | echo " unrpm -x package.rpm /foo/boo <Extract rpm package to this directory," | 9 | echo " unrpm -x package.rpm /foo/boo <Extract rpm package to this directory," |
10 | echo " put . for current directory>" | 10 | echo " put . for current directory>" |
11 | exit | 11 | exit |
12 | } | 12 | } |
13 | 13 | ||
14 | rpm=$2 | 14 | rpm=$2 |
15 | 15 | ||
16 | exist() { | 16 | exist() { |
17 | if [ "$rpm" = "" ]; then | 17 | if [ "$rpm" = "" ]; then |
18 | usage | 18 | usage |