#!/bin/sh
/bin/stty -F /dev/ttyS0 -a >> /dos/data/stuff/ttyS0.txt
/bin/stty -F /dev/ttyS1 -a >> /dos/data/stuff/ttyS1.txt
/bin/stty -F /dev/ttyAM0 -a >> /dos/data/stuff/ttyAM0.txt
/bin/stty -F /dev/ttyAM1 -a >> /dos/data/stuff/ttyAM1.txt
/bin/ls -la /dev >> /dos/data/stuff/devlist.txt
set >> /dos/data/stuff/set.txt
dd if=/dev/mem of=/dos/data/stuff/rom.bin bs=1024 count=256
cp -a /proc /dos/data/stuff/proc_snap
tar cf /dos/data/stuff/proc.tar /proc
Resulted in the following (note that the dd command, among others failed). The proc_snap directory /does/ a kcore file though ;-)
stty: /dev/ttyAM0: No such file or directory
stty: /dev/ttyAM1: No such file or directory
Segmentation fault
cp: cannot create symlink `/dos/data/stuff/proc_snap/ide/hda': Operation not permitted
Data:
-rwxr--r-- 1 root root 3726 Dec 31 1979 devlist.txt
drwxr--r-- 11 root root 32768 Dec 31 1979 proc_snap
-rwxr--r-- 1 root root 0 Dec 31 1979 rom.bin
-rwxr--r-- 1 root root 358 Dec 31 1979 set.txt
-rwxr--r-- 1 root root 0 Dec 31 1979 ttyAM0.txt
-rwxr--r-- 1 root root 0 Dec 31 1979 ttyAM1.txt
-rwxr--r-- 1 root root 1124 Dec 31 1979 ttyS0.txt
-rwxr--r-- 1 root root 1132 Dec 31 1979 ttyS1.txt
[ ttyS0 ]
speed 115200 baud; rows 0; columns 0;
intr = ^C; quit = ^\; erase = ^?; kill = ^U; eof = ^D; eol = <undef>;
eol2 = <undef>; start = ^Q; stop = ^S; susp = ^Z; rprnt = ^R; werase = ^W;
lnext = ^V; flush = ^O; min = 1; time = 0;
-parenb -parodd cs8 hupcl -cstopb cread clocal -crtscts
-ignbrk -brkint -ignpar -parmrk -inpck -istrip -inlcr -igncr icrnl ixon ixoff
-iuclc -ixany -imaxbel
opost -olcuc -ocrnl onlcr -onocr -onlret -ofill -ofdel nl0 cr0 tab0 bs0 vt0 ff0
-isig -icanon -iexten -echo -echoe -echok -echonl -noflsh -xcase -tostop
-echoprt -echoctl -echoke
[ ttyS1 ]
speed 115200 baud; rows 0; columns 0;
intr = ^C; quit = ^\; erase = ^?; kill = ^U; eof = ^D; eol = <undef>;
eol2 = <undef>; start = ^Q; stop = ^S; susp = ^Z; rprnt = ^R; werase = ^W;
lnext = ^V; flush = ^O; min = 1; time = 0;
-parenb -parodd cs8 -hupcl -cstopb cread clocal -crtscts
ignbrk -brkint ignpar -parmrk -inpck -istrip -inlcr -igncr -icrnl -ixon -ixoff
-iuclc -ixany -imaxbel
-opost -olcuc -ocrnl -onlcr -onocr -onlret -ofill -ofdel nl0 cr0 tab0 bs0 vt0
ff0
-isig -icanon -iexten -echo -echoe -echok -echonl -noflsh -xcase -tostop
-echoprt -echoctl -echoke
[ DEV ]
drwxr-xr-x 3 0 0 1024 Apr 7 2003 .
drwxr-xr-x 12 500 500 1024 Oct 18 2002 ..
crw------- 1 0 0 14, 1 May 3 2000 audio
lrwxrwxrwx 1 0 0 5 Oct 18 2002 console -> ttyS0
crw------- 1 0 0 14, 1 May 3 2000 dsp
crw-r--r-- 1 0 0 1, 7 Dec 24 1997 full
brw-r----- 1 0 0 3, 0 May 12 2000 hda
brw-r----- 1 0 0 3, 1 May 12 2000 hda1
brw-r----- 1 0 0 3, 2 May 12 2000 hda2
brw-r----- 1 0 0 3, 3 May 12 2000 hda3
brw-r----- 1 0 0 3, 4 May 12 2000 hda4
brw-r----- 1 0 0 3, 5 Sep 13 2001 hda5
brw-r--r-- 1 0 0 0, 250 Dec 30 1997 initrd
crw-r--r-- 1 0 0 1, 2 Dec 24 1997 kmem
crw-r--r-- 1 0 0 13, 1 Apr 7 2003 led
crw-r--r-- 1 0 0 1, 1 Dec 24 1997 mem
crw-r--r-- 1 0 0 1, 3 Dec 24 1997 null
crw-r--r-- 1 0 0 1, 4 Dec 24 1997 port
drwxr-xr-x 2 0 0 1024 Dec 12 1999 pts
brw-r--r-- 1 0 0 1, 1 Dec 24 1997 ram
crw-r--r-- 1 0 0 55, 1 Jan 28 2000 ts
crw-r--r-- 1 0 0 5, 0 Dec 24 1997 tty
crw-r--r-- 1 0 0 4, 0 Dec 16 1997 tty0
crw-r--r-- 1 0 0 4, 1 Dec 11 1997 tty1
crw-r--r-- 1 0 0 4, 2 Jan 16 1998 tty2
crw-r--r-- 1 0 0 4, 3 Jan 16 1998 tty3
crw-r--r-- 1 0 0 4, 4 Jan 16 1998 tty4
crw-r--r-- 1 0 0 4, 64 Dec 11 1997 ttyS0
crw-r--r-- 1 0 0 4, 65 Jan 1 00:00 ttyS1
crw-r--r-- 1 0 0 1, 5 Dec 24 1997 zero