Page Menu
Home
DevCentral
Search
Configure Global Search
Log In
Files
F3765711
D3431.id8853.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
405 B
Referenced Files
None
Subscribers
None
D3431.id8853.diff
View Options
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
Details
Attached
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)
Attached To
Mode
D3431: Detect FreeBSD
Attached
Detach File
Event Timeline
Log In to Comment