Page MenuHomeDevCentral

D3431.id8853.diff
No OneTemporary

D3431.id8853.diff

diff --git a/shell/is-freebsd.sh b/shell/is-freebsd.sh
new file mode 100644
--- /dev/null
+++ b/shell/is-freebsd.sh
@@ -0,0 +1,11 @@
+# -------------------------------------------------------------
+# Determine etc directory path
+# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
+
+. /etc/os-release
+
+if [ "$ID" = "freebsd" ]; then
+ ETC=/usr/local/etc
+else
+ ETC=/etc
+fi

File Metadata

Mime Type
text/plain
Expires
Sat, Nov 23, 13:53 (18 h, 13 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2258153
Default Alt Text
D3431.id8853.diff (405 B)

Event Timeline