aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--README20
-rw-r--r--findcdrom/Makefile3
-rwxr-xr-xfindcdrom/findcdrombin0 -> 924 bytes
-rwxr-xr-xfindcdrom/findcdrom-debugbin0 -> 6340 bytes
-rw-r--r--findcdrom/findcdrom.c73
-rw-r--r--flx/AUTHORS1
l---------flx/COPYING1
-rw-r--r--flx/ChangeLog9
-rw-r--r--flx/LICENCE340
-rw-r--r--flx/Makefile215
-rw-r--r--flx/NOTES143
-rw-r--r--flx/README20
-rw-r--r--flx/TODO14
-rw-r--r--flx/arg.c106
-rw-r--r--flx/arg.h49
-rw-r--r--flx/check.c556
-rw-r--r--flx/check.h27
-rw-r--r--flx/ctrl132
-rw-r--r--flx/fct1.c452
-rw-r--r--flx/flx.c115
-rw-r--r--flx/flx.h264
-rw-r--r--flx/flx_fcntl.h14
l---------flx/flxcheck1
l---------flx/flxsign1
-rw-r--r--flx/input.c114
-rw-r--r--flx/input.h24
-rw-r--r--flx/input_file.c462
-rw-r--r--flx/input_file.h34
-rw-r--r--flx/input_fs.c332
-rw-r--r--flx/input_fs.h29
-rw-r--r--flx/main.c79
-rw-r--r--flx/md5.c261
-rw-r--r--flx/md5.h55
-rw-r--r--flx/output.c157
-rw-r--r--flx/output.h33
-rw-r--r--flx/output_file.c267
-rw-r--r--flx/output_file.h20
-rw-r--r--flx/sign.c117
-rw-r--r--flx/sign.h14
-rw-r--r--flx/source_type.h29
-rw-r--r--flx/utils.c147
-rw-r--r--flx/utils.h187
-rw-r--r--ifenslave/Makefile16
-rw-r--r--ifenslave/ifenslave.c652
-rw-r--r--include/rules.make20
-rw-r--r--init/Makefile3
-rw-r--r--init/README99
-rwxr-xr-xinit/examples/cd_nofloppy58
-rwxr-xr-xinit/examples/cd_preinit63
-rwxr-xr-xinit/examples/cd_ramonly66
-rwxr-xr-xinit/examples/hd_preinit60
-rwxr-xr-xinit/initbin0 -> 5620 bytes
-rw-r--r--init/init.c1274
-rwxr-xr-xinit/mkdevbin0 -> 3156 bytes
-rw-r--r--init/mkdev.c516
-rwxr-xr-xlcd/lcdteebin0 -> 684 bytes
-rwxr-xr-xlcd/lcdwritebin0 -> 812 bytes
-rw-r--r--mii/Makefile16
-rw-r--r--mii/libmii.c526
-rw-r--r--mii/mii-diag.c457
-rw-r--r--mii/starfire-diag.c640
-rw-r--r--mii/tulip-diag.c1656
-rw-r--r--mktmp/Makefile9
-rwxr-xr-xmktmp/mktmpbin0 -> 1692 bytes
-rw-r--r--mktmp/mktmp.c136
-rw-r--r--remount/Makefile12
-rwxr-xr-xremount/remountrbin0 -> 436 bytes
-rw-r--r--remount/remountr.c25
l---------remount/remountw1
-rwxr-xr-xscripts/flxadd350
-rwxr-xr-xscripts/flxfix85
-rwxr-xr-xscripts/noctrlaltdel20
-rwxr-xr-xscripts/pci-listall2
-rwxr-xr-xscripts/pcidev141
-rwxr-xr-xscripts/pkg505
-rwxr-xr-xscripts/reset3
-rwxr-xr-xsignfs/signfsbin0 -> 17596 bytes
-rw-r--r--uname/Makefile3
-rwxr-xr-xuname/unamebin0 -> 787 bytes
-rw-r--r--uname/uname.c109
-rw-r--r--wd/Makefile9
-rwxr-xr-xwd/wddbin0 -> 431 bytes
-rw-r--r--wd/wdd.c38
83 files changed, 12387 insertions, 0 deletions
diff --git a/README b/README
new file mode 100644
index 0000000..61fa0cb
--- /dev/null
+++ b/README
@@ -0,0 +1,20 @@
+Warning !!!
+
+ 1) this package should be compiled with the "pkg" command distributed with Formilux
+ 2) dietlibc and sstrip are needed for most small utilities. Since they're not available
+ everywhere, a pre-compiled version of these utilities is provided. To avoid unexpected
+ cleanups, "pkg clean" only cleans the minimum, and you have to use "pkg distclean" to
+ clean everything. Don't do it if you don't have all the tools to rebuild ! In this case,
+ proceed this way :
+
+ # pkg compile ; pkg prepack ; pkg strip ; pkg pack ; pkg clean
+
+Note: the "pkg" command uses several special variables which can be defined in
+the pkg file :
+ - PATCH_LIST is a list of patches to apply with "pkg patch" or revert with
+ "pkg unpatch" ;
+ - FILE_LIST contains the name of a file (.flxfiles) which contains a listing
+ of all files of the current directory to be archived in the package,
+ instead of making a tar of .flxdisk. Note that do_prepack() and do_strip()
+ should be redefined in this case (at least to do nothing).
+
diff --git a/findcdrom/Makefile b/findcdrom/Makefile
new file mode 100644
index 0000000..dd663c6
--- /dev/null
+++ b/findcdrom/Makefile
@@ -0,0 +1,3 @@
+OBJS=findcdrom findcdrom-debug
+include ../include/rules.make
+CFLAGS+=-fomit-frame-pointer
diff --git a/findcdrom/findcdrom b/findcdrom/findcdrom
new file mode 100755
index 0000000..ca03e7d
--- /dev/null
+++ b/findcdrom/findcdrom
Binary files differ
diff --git a/findcdrom/findcdrom-debug b/findcdrom/findcdrom-debug
new file mode 100755
index 0000000..116ad95
--- /dev/null
+++ b/findcdrom/findcdrom-debug
Binary files differ
diff --git a/findcdrom/findcdrom.c b/findcdrom/findcdrom.c
new file mode 100644
index 0000000..3c99b34
--- /dev/null
+++ b/findcdrom/findcdrom.c
@@ -0,0 +1,73 @@
+#include <fcntl.h>
+
+#ifdef DEBUG
+# define PRINTF printf
+#else
+# define PRINTF(...)
+#endif
+
+// RETURN VALUE:
+// 0 : ok
+// 1 : no file /proc/sys/dev/cdrom
+// 2 : failed to chdir /dev
+// 3 : cdrom found but cannot creat /dev/cdrom
+// 4 : no cdrom data found
+
+
+int main() {
+ int fd,fd2,s,t=0;
+ char tmp[4096],buff[4096],*p,*f;
+ static const char nocdrom[]="No CDROM found\n";
+
+ // find CDROM detection in /proc/sys/dev/cdrom/info
+ if ((fd=open("/proc/sys/dev/cdrom/info",O_RDONLY)) < 0) {
+ write(2,nocdrom,sizeof(nocdrom));
+ exit(1);
+ }
+ if (chdir("/dev")) {
+ PRINTF("Cannot chdir to /dev\n");
+ exit(2);
+ }
+ // looking for "driver name:"
+ while ((s=read(fd,tmp+t,4096-t)) > 0) {
+ t+=s;
+ if ((p=(char*)strstr(tmp,"\ndrive name:")) && strchr(p+=13,'\n')) {
+ // have found it, looking for drive name(s)
+ while (*p != '\n') {
+ while (*p == ' ' || *p == '\t') p++;
+ for (f=p;*f > ' ' ; f++) ;
+ if (*f == '\n') *f=0; else *f++=0;
+ // found and now try
+ PRINTF("Trying [%s]\n",p);
+ if ((fd2=open(p,O_RDONLY)) >= 0) {
+ // read a small packet to detect valid iso9660
+ if (read(fd2,buff,4096) > 0) {
+ close(fd2);
+ close(fd);
+ // creat the symbolic link to /dev/cdrom
+ if (symlink(p,"cdrom") == 0) {
+#ifdef DEBUG
+ write(2," ",2);
+#endif
+ write(2,"Found CDROM: ",13);
+ write(2,p,strlen(p));
+ write(2,"\n",1);
+ exit(0);
+ }
+ exit(3);
+ }
+ PRINTF(" read failed\n");
+ close(fd2);
+ } else {
+ PRINTF(" open failed\n");
+ }
+ p=f;
+ }
+ break;
+ }
+ }
+ if (s >= 0) close(fd);
+ write(2,nocdrom,sizeof(nocdrom));
+ return (4);
+}
+
diff --git a/flx/AUTHORS b/flx/AUTHORS
new file mode 100644
index 0000000..0e11609
--- /dev/null
+++ b/flx/AUTHORS
@@ -0,0 +1 @@
+Benoit Dolez <benoit@ant-computing.com>
diff --git a/flx/COPYING b/flx/COPYING
new file mode 120000
index 0000000..97ea633
--- /dev/null
+++ b/flx/COPYING