aboutsummaryrefslogtreecommitdiffstats
path: root/file_cmds/dd/install_symlink.sh
diff options
context:
space:
mode:
Diffstat (limited to 'file_cmds/dd/install_symlink.sh')
-rw-r--r--file_cmds/dd/install_symlink.sh16
1 files changed, 16 insertions, 0 deletions
diff --git a/file_cmds/dd/install_symlink.sh b/file_cmds/dd/install_symlink.sh
new file mode 100644
index 0000000..7e8665f
--- /dev/null
+++ b/file_cmds/dd/install_symlink.sh
@@ -0,0 +1,16 @@
+#!/bin/sh
+set -e
+set -x
+
+case "$PLATFORM_NAME" in
+iphoneos|appletvos|watchos|bridgeos)
+ ln -hfs /usr/local/bin/dd "$DSTROOT"/bin/dd
+ ;;
+macosx)
+ ;;
+*)
+ echo "Unsupported platform: $PLATFORM_NAME"
+ exit 1
+ ;;
+esac
+