summaryrefslogtreecommitdiffstats
path: root/functions
diff options
context:
space:
mode:
Diffstat (limited to 'functions')
-rw-r--r--functions11
1 files changed, 11 insertions, 0 deletions
diff --git a/functions b/functions
index 7b421d2..abe1cad 100644
--- a/functions
+++ b/functions
@@ -79,6 +79,7 @@ add_device ()
fi
}
+# what the hell does this do?
add_symlink ()
{
local fil dest dir
@@ -95,6 +96,16 @@ add_symlink ()
#fail quietly
}
+add_symlink2 ()
+{
+ add_dir $(dirname ${1})
+ add_dir $(dirname ${2})
+ if ! grep -q "slink ${1} " "${FILELIST}" 2>&1 >/dev/null; then
+ msg " adding link ${1} -> ${2}"
+ echo "slink ${1} ${2} 777 0 0" >> "${FILELIST}"
+ fi
+}
+
add_file ()
{
local fil lnk dir dest