-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Divide debian and openwrt package metadata files
Signed-off-by: Gerard Hickey <[email protected]>
- Loading branch information
Showing
12 changed files
with
89 additions
and
34 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
Package: meshchat | ||
Version: | ||
Depends: lua5.4 | ||
Provides: | ||
Source: package/meshchat | ||
Section: net | ||
Priority: optional | ||
Maintainer: Gerard Hickey <[email protected]> | ||
Architecture: all | ||
Description: P2P distributed chat for mesh networks |
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,6 +5,6 @@ Provides: | |
Source: package/meshchat | ||
Section: net | ||
Priority: optional | ||
Maintainer: Tim Wilkinson (KN6PLV) and Trevor Paskett (K7FPV) | ||
Maintainer: Gerard Hickey <[email protected]> | ||
Architecture: all | ||
Description: P2P distributed chat for mesh networks |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
#!/bin/sh | ||
|
||
grep "|8080|meshchat" /etc/config.mesh/_setup.services.dmz &> /dev/null | ||
DMZPRESENT=$? | ||
grep "|8080|meshchat" /etc/config.mesh/_setup.services.nat &> /dev/null | ||
NATPRESENT=$? | ||
NODEMODE=$(uci -q -c /etc/local/uci/ get hsmmmesh.settings.config) | ||
RAND=$(awk 'BEGIN{srand();print int(rand()*10000) }') | ||
RESTART=0 | ||
|
||
if [ "$DMZPRESENT" != 0 ]; then | ||
echo "MeshChat-$RAND|1|http|$(uname -n)|8080|meshchat" >> /etc/config.mesh/_setup.services.dmz | ||
RESTART=1 | ||
fi | ||
|
||
if [ "$NATPRESENT" != 0 ]; then | ||
echo "MeshChat-$RAND|1|http|$(uname -n)|8080|meshchat" >> /etc/config.mesh/_setup.services.nat | ||
RESTART=1 | ||
fi | ||
|
||
if [ "$NODEMODE" = "mesh" -a "$RESTART" = "1" ]; then | ||
echo "Applying service announcement" | ||
/usr/local/bin/node-setup -a -p mesh &> /dev/null | ||
/etc/init.d/olsrd restart &> /dev/null | ||
fi | ||
|
||
/etc/init.d/meshchatsync enable | ||
/etc/init.d/meshchatsync start | ||
|
||
echo "<br>" | ||
|
||
echo "Mesh Chat has been setup at http://$(uname -n):8080/meshchat" | ||
echo "<br>" | ||
if [ "$RESTART" = "1" ]; then | ||
echo "An advertised service has been added for Mesh Chat on the Services configuration page" | ||
fi | ||
|
||
exit 0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
#!/bin/sh | ||
|
||
/etc/init.d/meshchatsync stop > /dev/null 2> /dev/null | ||
|
||
mkdir -p /www/meshchat | ||
|
||
# if there is not a meshchat_local.lua, then prepare one | ||
if [ ! -f /www/cgi-bin/meshchat_local.lua ]; then | ||
if [ -f /www/cgi-bin/meshchatconfig.lua ]; then | ||
cp /www/cgi-bin/meshchatconfig.lua /www/cgi-bin/meshchat_local.lua | ||
|
||
# remove vars that should not be in meshchat_local.lua | ||
sed -i "/^protocol_version/d; /^app_version/d" /www/cgi-bin/meshchat_local.lua | ||
else | ||
touch /www/cgi-bin/meshchat_local.lua | ||
fi | ||
fi | ||
|
||
exit 0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
#!/bin/sh | ||
|
||
/etc/init.d/meshchatsync disable | ||
/etc/init.d/meshchatsync stop | ||
|
||
rm -rf /tmp/meshchat | ||
|
||
exit 0 |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters