summaryrefslogtreecommitdiffstats
path: root/src/vfs/shell/helpers/ln
diff options
context:
space:
mode:
Diffstat (limited to 'src/vfs/shell/helpers/ln')
-rw-r--r--src/vfs/shell/helpers/ln7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/vfs/shell/helpers/ln b/src/vfs/shell/helpers/ln
new file mode 100644
index 0000000..15a20cd
--- /dev/null
+++ b/src/vfs/shell/helpers/ln
@@ -0,0 +1,7 @@
+FILEFROM="${SHELL_FILEFROM}"
+FILETO="/${SHELL_FILETO}"
+if ln -s "${FILEFROM}" "${FILETO}" 2>/dev/null; then
+ echo "### 000"
+else
+ echo "### 500"
+fi