Comments (4)
The functionality is minimal, easy to fix. PR?
from signalk-server.
happy to send patches if you want me to do this. basically we redo
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
and replace it with
DIR=dirname $0
cd $DIR
and then replace
#!/bin/bash for #!/bin/sh
from signalk-server.
Sure, nothing beats the smell of easily merged Pull Requests in the morning. Or any time of the day for that matter...
from signalk-server.
the following patch uses readlink to make shell independent startup scripts.
diff --git a/bin/actisense-serial-n2kd b/bin/actisense-serial-n2kd
index e35e159..a5b0d9d 100755
--- a/bin/actisense-serial-n2kd
+++ b/bin/actisense-serial-n2kd
@@ -1,2 +1,3 @@
-#!/bin/bash
-actisense-serial /dev/tty.usbserial-1FD34 | analyzer -json | tee >(n2kd)
\ No newline at end of file
+#!/bin/sh
+actisense-serial /dev/tty.usbserial-1FD34 | analyzer -json | tee >(n2kd)
+
diff --git a/bin/n2k-from-actisense b/bin/n2k-from-actisense
index e63d5fe..defa6a0 100755
--- a/bin/n2k-from-actisense
+++ b/bin/n2k-from-actisense
@@ -1,4 +1,7 @@
-#!/bin/bash
+#!/bin/sh
+
+SP=readlink -f $0
+DIR=dirname $SP
+cd $DIR/..
+$DIR/signalk-server -s ./settings/actisense-serial-settings.json $*
-DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
-$DIR/signalk-server -s ./settings/actisense-serial-settings.json $*
\ No newline at end of file
diff --git a/bin/n2k-from-file b/bin/n2k-from-file
index aa1e290..622d6ef 100755
--- a/bin/n2k-from-file
+++ b/bin/n2k-from-file
@@ -1,4 +1,7 @@
-#!/bin/bash
+#!/bin/sh
+
+SP=readlink -f $0
+DIR=dirname $SP
+cd $DIR/..
+$DIR/signalk-server -s ./settings/aava-file-settings.json $*
-DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
-$DIR/signalk-server -s ./settings/aava-file-settings.json $*
\ No newline at end of file
diff --git a/bin/nmea-from-file b/bin/nmea-from-file
index 34340f2..ab13b6f 100755
--- a/bin/nmea-from-file
+++ b/bin/nmea-from-file
@@ -1,4 +1,7 @@
-#!/bin/bash
+#!/bin/sh
+
+SP=readlink -f $0
+DIR=dirname $SP
+cd $DIR/..
+$DIR/signalk-server -s ./settings/volare-file-settings.json $*
-DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
-$DIR/signalk-server -s ./settings/volare-file-settings.json $*
\ No newline at end of file
from signalk-server.
Related Issues (20)
- Incorrect handling of X-Forwarded-For
- AppStore screen error during Server upgrade. HOT 2
- When approving client token requests, the timeout phrase "NEVER" is case sensitive
- Reinstalling all plugins very resource hungry HOT 1
- Dependencies dropped from Docker server in updates may cause plugins to fail HOT 1
- Disabling linked plugins on update HOT 2
- Can't add new meta data HOT 1
- Data Browser no longer display arbitrary meta data
- WebSocket SourceRef is not handled correctly in source priorities
- No more the "/static/" directory? HOT 4
- Zones get lost HOT 11
- Zones get lost HOT 3
- Make pending token access requests visible from the top level server menu
- Identify the N2K source device for data items HOT 3
- Plugin config page switches don't update the page HOT 4
- Npm registry returning outdated keyword search results HOT 11
- Multiple plugins having issue with "Null Latitude" HOT 1
- How to provide unit to delta update for custom value. HOT 2
- SignalK skipping random emit's HOT 4
- SignalK server has no protection against some device sending flood of alarms HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from signalk-server.