36 items
NAME ↑ SIZE MODIFIED PERMS ACTIONS
.. / Parent Directory
a+ — 3.13 KB
2022-02-10 07:08 · rwxr-xr-x
3.13 KB 2022-02-10 07:08 rwxr-xr-x
apt+ — 9.5 KB
2022-02-10 07:08 · rwxr-xr-x
9.5 KB 2022-02-10 07:08 rwxr-xr-x
audio — 1.29 KB
2022-02-10 07:08 · rwxr-xr-x
1.29 KB 2022-02-10 07:08 rwxr-xr-x
bpp — 1.18 KB
2021-01-18 18:27 · rwxr-xr-x
1.18 KB 2021-01-18 18:27 rwxr-xr-x
changesetfs — 2.51 KB
2021-01-18 18:27 · rwxr-xr-x
2.51 KB 2021-01-18 18:27 rwxr-xr-x
deb — 5.4 KB
2022-02-10 07:08 · rwxr-xr-x
5.4 KB 2022-02-10 07:08 rwxr-xr-x
deba — 3 KB
2022-02-10 07:08 · rwxr-xr-x
3 KB 2022-02-10 07:08 rwxr-xr-x
debd — 10.26 KB
2022-02-10 07:08 · rwxr-xr-x
10.26 KB 2022-02-10 07:08 rwxr-xr-x
dpkg+ — 8.79 KB
2022-02-10 07:08 · rwxr-xr-x
8.79 KB 2022-02-10 07:08 rwxr-xr-x
gitfs+ — 786 B
2021-01-18 18:27 · rwxr-xr-x
786 B 2021-01-18 18:27 rwxr-xr-x
hp48+ — 3.58 KB
2022-02-10 07:08 · rwxr-xr-x
3.58 KB 2022-02-10 07:08 rwxr-xr-x
iso9660 — 5.82 KB
2022-02-10 07:08 · rwxr-xr-x
5.82 KB 2022-02-10 07:08 rwxr-xr-x
lslR — 1.41 KB
2022-02-10 07:08 · rwxr-xr-x
1.41 KB 2022-02-10 07:08 rwxr-xr-x
mailfs — 5.7 KB
2022-02-10 07:08 · rwxr-xr-x
5.7 KB 2022-02-10 07:08 rwxr-xr-x
patchfs — 11.01 KB
2022-02-10 07:08 · rwxr-xr-x
11.01 KB 2022-02-10 07:08 rwxr-xr-x
patchsetfs — 2.26 KB
2021-01-18 18:27 · rwxr-xr-x
2.26 KB 2021-01-18 18:27 rwxr-xr-x
README — 7.36 KB
2021-01-18 18:27 · rw-r--r--
7.36 KB 2021-01-18 18:27 rw-r--r--
README.extfs — 1.13 KB
2021-01-18 18:27 · rw-r--r--
1.13 KB 2021-01-18 18:27 rw-r--r--
rpm — 13.93 KB
2021-01-18 18:27 · rwxr-xr-x
13.93 KB 2021-01-18 18:27 rwxr-xr-x
rpms+ — 1.47 KB
2022-02-10 07:08 · rwxr-xr-x
1.47 KB 2022-02-10 07:08 rwxr-xr-x
trpm — 7.66 KB
2021-01-18 18:27 · rwxr-xr-x
7.66 KB 2021-01-18 18:27 rwxr-xr-x
u7z — 4.71 KB
2021-01-18 18:27 · rwxr-xr-x
4.71 KB 2021-01-18 18:27 rwxr-xr-x
uace — 1.48 KB
2022-02-10 07:08 · rwxr-xr-x
1.48 KB 2022-02-10 07:08 rwxr-xr-x
ualz — 1.25 KB
2022-02-10 07:08 · rwxr-xr-x
1.25 KB 2022-02-10 07:08 rwxr-xr-x
uar — 1.3 KB
2022-02-10 07:08 · rwxr-xr-x
1.3 KB 2022-02-10 07:08 rwxr-xr-x
uarc — 1.79 KB
2022-02-10 07:08 · rwxr-xr-x
1.79 KB 2022-02-10 07:08 rwxr-xr-x
uarj — 1.62 KB
2022-02-10 07:08 · rwxr-xr-x
1.62 KB 2022-02-10 07:08 rwxr-xr-x
ucab — 737 B
2022-02-10 07:08 · rwxr-xr-x
737 B 2022-02-10 07:08 rwxr-xr-x
uha — 973 B
2022-02-10 07:08 · rwxr-xr-x
973 B 2022-02-10 07:08 rwxr-xr-x
ulha — 3.78 KB
2022-02-10 07:08 · rwxr-xr-x
3.78 KB 2022-02-10 07:08 rwxr-xr-x
ulib — 2.76 KB
2022-02-10 07:08 · rwxr-xr-x
2.76 KB 2022-02-10 07:08 rwxr-xr-x
unar — 1.22 KB
2022-02-10 07:08 · rwxr-xr-x
1.22 KB 2022-02-10 07:08 rwxr-xr-x
urar — 4.37 KB
2022-02-10 07:08 · rwxr-xr-x
4.37 KB 2022-02-10 07:08 rwxr-xr-x
uwim — 5.09 KB
2022-02-10 07:08 · rwxr-xr-x
5.09 KB 2022-02-10 07:08 rwxr-xr-x
uzip — 14.91 KB
2022-02-10 07:08 · rwxr-xr-x
14.91 KB 2022-02-10 07:08 rwxr-xr-x
uzoo — 1.57 KB
2022-02-10 07:08 · rwxr-xr-x
1.57 KB 2022-02-10 07:08 rwxr-xr-x
ONLINE
extfs.d
36 items
11:39:53
TERMINAL FM
Edit
Preview
Download
Rename
Copy
Chmod
Delete
#!/usr/bin/sh # # Written by Christofer Edvardsen , Feb 1998 # # This script makes it possible to view and copy files to/from a hp48 # (tested with a HP48G and the emulator x48) # # To use the hp48 external filesystem: # - read the relevant parts of your HP48 manual # - install kermit # - connect the HP48 to your computer or start x48 # - below change the line which reflects the serial device you use # - configure your HP48 ( - i/o - iopar): # port: wire # baud: 9600 # transfer format: binary (fast transfers) or # ascii (editable on the pc) # - start the server on the HP48: - i/o - srvr - serve # or the shortcut - # - on MC's commandline enter "cd hp48://" # # Make sure you have kermit installed and that it's using the right serial # device by changing /dev/ttyXX on the next line AWK=gawk KERMIT=${MC_TEST_EXTFS_LIST_CMD:-"kermit -l /dev/ttyS1 -b 9600"} NOW=`date +"%m-%d-%Y %H:%M"` hp48_cmd() { $KERMIT -C "SET EXIT WARNING OFF,REMOTE $1,QUIT" } hp48_cd() { (echo SET EXIT WARNING OFF;echo REMOTE HOST HOME for HP48_DIR in `echo "$1" | tr '/' ' '`;do if [ "x$HP48_DIR" != "x." ];then echo REMOTE HOST "$HP48_DIR"; fi done echo QUIT)| $KERMIT -B >/dev/null } # # Parses the reply to the DIRECTORY command. # # Here's an example reply (taken from [1][2]): # # { HOME } 105617 # STRAY 185.5 Directory 29225 # YEN 30.5 Program 53391 # JYTLIGHT 21848.5 String 62692 # IOPAR 37.5 List 61074 # # The meaning of the fields (according to [3][4]): # # { Current_directory } Free_space # Object_name Object_size_bytes Object_type Object_CRC # ... # # [1] http://newarea48.tripod.com/kermit.html # [2] http://www.hpmuseum.org/forum/thread-4684.html # [3] https://groups.google.com/d/msg/comp.sys.hp48/bYTCu9K3k20/YWQfF--W3EEJ # [4] http://www.columbia.edu/kermit/hp48.html (also has a link to the HP's user manual). # hp48_parser() { HP48_DIRS= read -r INPUT while [ "x$INPUT" != "xEOF" ] do set -- $INPUT obj_name=$1 obj_size=$2 obj_type=$3 obj_size=`echo $obj_size | $AWK '{ print int($0) }'` # Truncates floats to ints; anything else to "0". if [ "$obj_size" != "0" ]; then # Skips the 1st reply line (purportedly there aren't zero-size files b/c, according to resource [4], the size is "including name"). case "$obj_type" in Directory) HP48_DIRS="$HP48_DIRS $obj_name" printf "%crwxr-xr-x 1 %-8d %-8d %8d %s %s\n" 'd' \ 0 0 $obj_size "$NOW" "$HP48_CDIR/$obj_name" ;; *) printf "%crw-r--r-- 1 %-8d %-8d %8d %s %s\n" '-' \ 0 0 $obj_size "$NOW" "$HP48_CDIR/$obj_name" ;; esac fi read -r INPUT done for HP48_DIR in $HP48_DIRS; do HP48_PDIR="$HP48_CDIR" HP48_CDIR="$HP48_CDIR/$HP48_DIR"; hp48_cmd "HOST $HP48_DIR" >/dev/null hp48_list HP48_CDIR="$HP48_PDIR"; hp48_cmd "HOST UPDIR" >/dev/null done } hp48_list() { # It's hard to see why this "EOF" thing is needed. The loop above can be changed to "while read -r obj_name ...". @TODO. { hp48_cmd "DIRECTORY"; echo; echo EOF; } | hp48_parser } # override any locale for dates LC_ALL=C export LC_ALL case "$1" in list) HP48_CDIR= hp48_cmd "HOST HOME" >/dev/null hp48_list exit 0;; copyout) cd "`dirname "$4"`" hp48_cd "`dirname "$3"`" $KERMIT -B -g "`basename "$3"`" -a "$4" >/dev/null exit 0;; copyin) cd "`dirname "$4"`" hp48_cd "`dirname "$3"`" $KERMIT -B -s "$4" -a "`basename "$3"`" >/dev/null exit 0;; esac exit 1