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