aboutsummaryrefslogtreecommitdiff
path: root/board/common.sh
diff options
context:
space:
mode:
Diffstat (limited to 'board/common.sh')
-rw-r--r--board/common.sh8
1 files changed, 8 insertions, 0 deletions
diff --git a/board/common.sh b/board/common.sh
new file mode 100644
index 0000000..ecda59d
--- /dev/null
+++ b/board/common.sh
@@ -0,0 +1,8 @@
+create_missing_dir() {
+ test -d "${TARGET_DIR}/$1" || mkdir "${TARGET_DIR}/$1"
+}
+
+remove_text() {
+ echo sed --in-place "s/$2//" $1
+ sed --in-place "s/$2//" $1
+}