Page Menu
Home
DevCentral
Search
Configure Global Search
Log In
Files
F3779774
D3431.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.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
Tue, Nov 26, 09:55 (10 h, 23 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2262627
Default Alt Text
D3431.diff (405 B)
Attached To
Mode
D3431: Detect FreeBSD
Attached
Detach File
Event Timeline
Log In to Comment