Adds some busybox editors
authorBarret Rhoden <brho@cs.berkeley.edu>
Tue, 5 Nov 2013 01:51:46 +0000 (17:51 -0800)
committerBarret Rhoden <brho@cs.berkeley.edu>
Thu, 16 Jan 2014 19:30:57 +0000 (11:30 -0800)
ed seems to work, not that I know it very well.  sed works too (at least
a basic sed 's/foo/bar/g' does).

vi doesn't work (screen control is all messed up).  Haven't tried awk.

You'll need to copy this config file to your busybox directory as
.config, then remake.  And of course copy the binary to KFS.

To save you all the hassle, I put symlinks in KFS for all the busybox
commands I use.

Here's some reading:
http://linux.about.com/library/cmd/blcmdl1_ed.htm
http://pubs.opengroup.org/onlinepubs/9699919799/utilities/ed.html
http://cm.bell-labs.com/cm/cs/who/dmr/qed.html

20 files changed:
kern/kfs/bin/ash [new symlink]
kern/kfs/bin/awk [new symlink]
kern/kfs/bin/cat [new symlink]
kern/kfs/bin/cp [new symlink]
kern/kfs/bin/echo [new symlink]
kern/kfs/bin/ed [new symlink]
kern/kfs/bin/kill [new symlink]
kern/kfs/bin/killall [new symlink]
kern/kfs/bin/ls [new symlink]
kern/kfs/bin/mkdir [new symlink]
kern/kfs/bin/mv [new symlink]
kern/kfs/bin/pwd [new symlink]
kern/kfs/bin/readlink [new symlink]
kern/kfs/bin/rm [new symlink]
kern/kfs/bin/rmdir [new symlink]
kern/kfs/bin/sed [new symlink]
kern/kfs/bin/stty [new symlink]
kern/kfs/bin/tty [new symlink]
kern/kfs/bin/vi [new symlink]
tools/patches/busybox-1.17.3-config

diff --git a/kern/kfs/bin/ash b/kern/kfs/bin/ash
new file mode 120000 (symlink)
index 0000000..c3fa810
--- /dev/null
@@ -0,0 +1 @@
+busybox
\ No newline at end of file
diff --git a/kern/kfs/bin/awk b/kern/kfs/bin/awk
new file mode 120000 (symlink)
index 0000000..c3fa810
--- /dev/null
@@ -0,0 +1 @@
+busybox
\ No newline at end of file
diff --git a/kern/kfs/bin/cat b/kern/kfs/bin/cat
new file mode 120000 (symlink)
index 0000000..c3fa810
--- /dev/null
@@ -0,0 +1 @@
+busybox
\ No newline at end of file
diff --git a/kern/kfs/bin/cp b/kern/kfs/bin/cp
new file mode 120000 (symlink)
index 0000000..c3fa810
--- /dev/null
@@ -0,0 +1 @@
+busybox
\ No newline at end of file
diff --git a/kern/kfs/bin/echo b/kern/kfs/bin/echo
new file mode 120000 (symlink)
index 0000000..c3fa810
--- /dev/null
@@ -0,0 +1 @@
+busybox
\ No newline at end of file
diff --git a/kern/kfs/bin/ed b/kern/kfs/bin/ed
new file mode 120000 (symlink)
index 0000000..c3fa810
--- /dev/null
@@ -0,0 +1 @@
+busybox
\ No newline at end of file
diff --git a/kern/kfs/bin/kill b/kern/kfs/bin/kill
new file mode 120000 (symlink)
index 0000000..c3fa810
--- /dev/null
@@ -0,0 +1 @@
+busybox
\ No newline at end of file
diff --git a/kern/kfs/bin/killall b/kern/kfs/bin/killall
new file mode 120000 (symlink)
index 0000000..c3fa810
--- /dev/null
@@ -0,0 +1 @@
+busybox
\ No newline at end of file
diff --git a/kern/kfs/bin/ls b/kern/kfs/bin/ls
new file mode 120000 (symlink)
index 0000000..c3fa810
--- /dev/null
@@ -0,0 +1 @@
+busybox
\ No newline at end of file
diff --git a/kern/kfs/bin/mkdir b/kern/kfs/bin/mkdir
new file mode 120000 (symlink)
index 0000000..c3fa810
--- /dev/null
@@ -0,0 +1 @@
+busybox
\ No newline at end of file
diff --git a/kern/kfs/bin/mv b/kern/kfs/bin/mv
new file mode 120000 (symlink)
index 0000000..c3fa810
--- /dev/null
@@ -0,0 +1 @@
+busybox
\ No newline at end of file
diff --git a/kern/kfs/bin/pwd b/kern/kfs/bin/pwd
new file mode 120000 (symlink)
index 0000000..c3fa810
--- /dev/null
@@ -0,0 +1 @@
+busybox
\ No newline at end of file
diff --git a/kern/kfs/bin/readlink b/kern/kfs/bin/readlink
new file mode 120000 (symlink)
index 0000000..c3fa810
--- /dev/null
@@ -0,0 +1 @@
+busybox
\ No newline at end of file
diff --git a/kern/kfs/bin/rm b/kern/kfs/bin/rm
new file mode 120000 (symlink)
index 0000000..c3fa810
--- /dev/null
@@ -0,0 +1 @@
+busybox
\ No newline at end of file
diff --git a/kern/kfs/bin/rmdir b/kern/kfs/bin/rmdir
new file mode 120000 (symlink)
index 0000000..c3fa810
--- /dev/null
@@ -0,0 +1 @@
+busybox
\ No newline at end of file
diff --git a/kern/kfs/bin/sed b/kern/kfs/bin/sed
new file mode 120000 (symlink)
index 0000000..c3fa810
--- /dev/null
@@ -0,0 +1 @@
+busybox
\ No newline at end of file
diff --git a/kern/kfs/bin/stty b/kern/kfs/bin/stty
new file mode 120000 (symlink)
index 0000000..c3fa810
--- /dev/null
@@ -0,0 +1 @@
+busybox
\ No newline at end of file
diff --git a/kern/kfs/bin/tty b/kern/kfs/bin/tty
new file mode 120000 (symlink)
index 0000000..c3fa810
--- /dev/null
@@ -0,0 +1 @@
+busybox
\ No newline at end of file
diff --git a/kern/kfs/bin/vi b/kern/kfs/bin/vi
new file mode 120000 (symlink)
index 0000000..c3fa810
--- /dev/null
@@ -0,0 +1 @@
+busybox
\ No newline at end of file
index ba1b54c..1fd5e46 100644 (file)
@@ -1,7 +1,7 @@
 #
 # Automatically generated make config: don't edit
 # Busybox version: 1.17.3
-# Fri Sep 13 10:29:30 2013
+# Mon Nov  4 17:24:22 2013
 #
 CONFIG_HAVE_DOT_CONFIG=y
 
@@ -338,30 +338,30 @@ CONFIG_DEFAULT_SETFONT_DIR=""
 #
 # Editors
 #
-# CONFIG_AWK is not set
+CONFIG_AWK=y
 # CONFIG_FEATURE_AWK_LIBM is not set
 # CONFIG_CMP is not set
 # CONFIG_DIFF is not set
 # CONFIG_FEATURE_DIFF_LONG_OPTIONS is not set
 # CONFIG_FEATURE_DIFF_DIR is not set
-# CONFIG_ED is not set
+CONFIG_ED=y
 # CONFIG_PATCH is not set
-# CONFIG_SED is not set
-# CONFIG_VI is not set
-CONFIG_FEATURE_VI_MAX_LEN=0
+CONFIG_SED=y
+CONFIG_VI=y
+CONFIG_FEATURE_VI_MAX_LEN=4096
 # CONFIG_FEATURE_VI_8BIT is not set
-# CONFIG_FEATURE_VI_COLON is not set
-# CONFIG_FEATURE_VI_YANKMARK is not set
-# CONFIG_FEATURE_VI_SEARCH is not set
-# CONFIG_FEATURE_VI_USE_SIGNALS is not set
-# CONFIG_FEATURE_VI_DOT_CMD is not set
-# CONFIG_FEATURE_VI_READONLY is not set
-# CONFIG_FEATURE_VI_SETOPTS is not set
-# CONFIG_FEATURE_VI_SET is not set
-# CONFIG_FEATURE_VI_WIN_RESIZE is not set
-# CONFIG_FEATURE_VI_ASK_TERMINAL is not set
-# CONFIG_FEATURE_VI_OPTIMIZE_CURSOR is not set
-# CONFIG_FEATURE_ALLOW_EXEC is not set
+CONFIG_FEATURE_VI_COLON=y
+CONFIG_FEATURE_VI_YANKMARK=y
+CONFIG_FEATURE_VI_SEARCH=y
+CONFIG_FEATURE_VI_USE_SIGNALS=y
+CONFIG_FEATURE_VI_DOT_CMD=y
+CONFIG_FEATURE_VI_READONLY=y
+CONFIG_FEATURE_VI_SETOPTS=y
+CONFIG_FEATURE_VI_SET=y
+CONFIG_FEATURE_VI_WIN_RESIZE=y
+CONFIG_FEATURE_VI_ASK_TERMINAL=y
+CONFIG_FEATURE_VI_OPTIMIZE_CURSOR=y
+CONFIG_FEATURE_ALLOW_EXEC=y
 
 #
 # Finding Utilities