Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
freedombone
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Context Sensitive Group
freedombone
Commits
14abffaf
Commit
14abffaf
authored
7 years ago
by
Bob Mottram
Browse files
Options
Downloads
Patches
Plain Diff
Hide cryptpad icon if mesh hotspot is enabled
parent
33fe1d91
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/freedombone-image-customise
+26
-24
26 additions, 24 deletions
src/freedombone-image-customise
src/freedombone-mesh-batman
+19
-0
19 additions, 0 deletions
src/freedombone-mesh-batman
with
45 additions
and
24 deletions
src/freedombone-image-customise
+
26
−
24
View file @
14abffaf
...
...
@@ -927,30 +927,32 @@ if [ \$no_of_users -gt 0 ]; then
chmod +x /home/
$MY_USERNAME
/Desktop/Users.desktop
chown
$MY_USERNAME
:
$MY_USERNAME
/home/
$MY_USERNAME
/Desktop/Users.desktop
if [ ! -f /home/
$MY_USERNAME
/Desktop/cryptpad.desktop ]; then
echo '[Desktop Entry]' > /home/
$MY_USERNAME
/Desktop/cryptpad.desktop
echo 'Name=CryptPad' >> /home/
$MY_USERNAME
/Desktop/cryptpad.desktop
echo 'Type=Application' >> /home/
$MY_USERNAME
/Desktop/cryptpad.desktop
echo 'Comment=Realtime collaborative editing of documents' >> /home/
$MY_USERNAME
/Desktop/cryptpad.desktop
echo 'Comment[el]=Συνεργατική επεξεργασία εγγράφων σε πραγματικό χρόνο' >> /home/
$MY_USERNAME
/Desktop/cryptpad.desktop
echo 'Comment[ar]=في الوقت الحقيقي التحرير التعاوني للوثائق' >> /home/
$MY_USERNAME
/Desktop/cryptpad.desktop
echo 'Comment[ca]=Edició col·laborativa en temps real de documents' >> /home/
$MY_USERNAME
/Desktop/cryptpad.desktop
echo 'Comment[hi]=दस्तावेज़ों का रीयलटाइम सहयोगी संपादन' >> /home/
$MY_USERNAME
/Desktop/cryptpad.desktop
echo 'Comment[fr]=Edition collaborative en temps réel de documents' >> /home/
$MY_USERNAME
/Desktop/cryptpad.desktop
echo 'Comment[de]=Kollaboratives Echtzeit-Editing von Dokumenten' >> /home/
$MY_USERNAME
/Desktop/cryptpad.desktop
echo 'Comment[es]=Edición colaborativa en tiempo real de documentos' >> /home/
$MY_USERNAME
/Desktop/cryptpad.desktop
echo 'Comment[it]=Editing collaborativo di documenti in tempo reale' >> /home/
$MY_USERNAME
/Desktop/cryptpad.desktop
echo 'Comment[ru]=Совместное редактирование документов в режиме реального времени' >> /home/
$MY_USERNAME
/Desktop/cryptpad.desktop
echo 'Comment[zh]=实时协同编辑文件' >> /home/
$MY_USERNAME
/Desktop/cryptpad.desktop
echo "Exec=
$BROWSER
http://
\$
{HOSTNAME}.local" >> /home/
$MY_USERNAME
/Desktop/cryptpad.desktop
echo "Icon=/usr/share/
$PROJECT_NAME
/avatars/icon_cryptpad.png" >> /home/
$MY_USERNAME
/Desktop/cryptpad.desktop
echo 'Terminal=false' >> /home/
$MY_USERNAME
/Desktop/cryptpad.desktop
echo 'Categories=Application;' >> /home/
$MY_USERNAME
/Desktop/cryptpad.desktop
chmod +x /home/
$MY_USERNAME
/Desktop/cryptpad.desktop
chown
$MY_USERNAME
:
$MY_USERNAME
/home/
$MY_USERNAME
/Desktop/cryptpad.desktop
else
if ! grep -q "
\$
{HOSTNAME}.local" /home/
$MY_USERNAME
/Desktop/cryptpad.desktop; then
sed -i "s|Exec=.*|Exec=
$BROWSER
http://
\$
{HOSTNAME}.local|g" /home/
$MY_USERNAME
/Desktop/cryptpad.desktop
if [ ! -f /home/
$MY_USERNAME
/.cryptpad.desktop ]; then
if [ ! -f /home/
$MY_USERNAME
/Desktop/cryptpad.desktop ]; then
echo '[Desktop Entry]' > /home/
$MY_USERNAME
/Desktop/cryptpad.desktop
echo 'Name=CryptPad' >> /home/
$MY_USERNAME
/Desktop/cryptpad.desktop
echo 'Type=Application' >> /home/
$MY_USERNAME
/Desktop/cryptpad.desktop
echo 'Comment=Realtime collaborative editing of documents' >> /home/
$MY_USERNAME
/Desktop/cryptpad.desktop
echo 'Comment[el]=Συνεργατική επεξεργασία εγγράφων σε πραγματικό χρόνο' >> /home/
$MY_USERNAME
/Desktop/cryptpad.desktop
echo 'Comment[ar]=في الوقت الحقيقي التحرير التعاوني للوثائق' >> /home/
$MY_USERNAME
/Desktop/cryptpad.desktop
echo 'Comment[ca]=Edició col·laborativa en temps real de documents' >> /home/
$MY_USERNAME
/Desktop/cryptpad.desktop
echo 'Comment[hi]=दस्तावेज़ों का रीयलटाइम सहयोगी संपादन' >> /home/
$MY_USERNAME
/Desktop/cryptpad.desktop
echo 'Comment[fr]=Edition collaborative en temps réel de documents' >> /home/
$MY_USERNAME
/Desktop/cryptpad.desktop
echo 'Comment[de]=Kollaboratives Echtzeit-Editing von Dokumenten' >> /home/
$MY_USERNAME
/Desktop/cryptpad.desktop
echo 'Comment[es]=Edición colaborativa en tiempo real de documentos' >> /home/
$MY_USERNAME
/Desktop/cryptpad.desktop
echo 'Comment[it]=Editing collaborativo di documenti in tempo reale' >> /home/
$MY_USERNAME
/Desktop/cryptpad.desktop
echo 'Comment[ru]=Совместное редактирование документов в режиме реального времени' >> /home/
$MY_USERNAME
/Desktop/cryptpad.desktop
echo 'Comment[zh]=实时协同编辑文件' >> /home/
$MY_USERNAME
/Desktop/cryptpad.desktop
echo "Exec=
$BROWSER
http://
\$
{HOSTNAME}.local" >> /home/
$MY_USERNAME
/Desktop/cryptpad.desktop
echo "Icon=/usr/share/
$PROJECT_NAME
/avatars/icon_cryptpad.png" >> /home/
$MY_USERNAME
/Desktop/cryptpad.desktop
echo 'Terminal=false' >> /home/
$MY_USERNAME
/Desktop/cryptpad.desktop
echo 'Categories=Application;' >> /home/
$MY_USERNAME
/Desktop/cryptpad.desktop
chmod +x /home/
$MY_USERNAME
/Desktop/cryptpad.desktop
chown
$MY_USERNAME
:
$MY_USERNAME
/home/
$MY_USERNAME
/Desktop/cryptpad.desktop
else
if ! grep -q "
\$
{HOSTNAME}.local" /home/
$MY_USERNAME
/Desktop/cryptpad.desktop; then
sed -i "s|Exec=.*|Exec=
$BROWSER
http://
\$
{HOSTNAME}.local|g" /home/
$MY_USERNAME
/Desktop/cryptpad.desktop
fi
fi
fi
...
...
This diff is collapsed.
Click to expand it.
src/freedombone-mesh-batman
+
19
−
0
View file @
14abffaf
...
...
@@ -264,8 +264,18 @@ function mesh_create_app_downloads_page {
# Don't go straight to cryptpad when navigating to the peer's IP address
if
[
-L
/etc/nginx/sites-enabled/cryptpad
]
;
then
rm
/etc/nginx/sites-enabled/cryptpad
ln
-s
/etc/nginx/sites-available/default /etc/nginx/sites-enabled/default
if
[
-d
/etc/cryptpad
]
;
then
systemctl stop cryptpad
systemctl disable cryptpad
fi
systemctl restart nginx
fi
# Don't show the cryptpad icon on the desktop
if
[
-f
/home/fbone/Desktop/cryptpad.desktop
]
;
then
mv
/home/fbone/Desktop/cryptpad.desktop /home/fbone/.cryptpad.desktop
fi
cp
/root/
$PROJECT_NAME
/website/EN/meshindex.html /var/www/html/index.html
if
[
!
-f
/var/www/html/ssb.apk
]
;
then
cp
/root/
$PROJECT_NAME
/image_build/mesh_apps/ssb.apk /var/www/html/ssb.apk
...
...
@@ -369,11 +379,20 @@ function start {
else
# Recreate the cryptpad symlink
if
[
-f
/etc/nginx/sites-available/cryptpad
]
;
then
if
[
-L
/etc/nginx/sites-enabled/cryptpad
]
;
then
rm
/etc/nginx/sites-enabled/default
fi
systemctl
enable
cryptpad
systemctl start cryptpad
if
[
!
-L
/etc/nginx/sites-enabled/cryptpad
]
;
then
ln
-s
/etc/nginx/sites-available/cryptpad /etc/nginx/sites-enabled/cryptpad
systemctl restart nginx
fi
fi
if
[
-f
/home/fbone/.cryptpad.desktop
]
;
then
mv
/home/fbone/.cryptpad.desktop /home/fbone/Desktop/cryptpad.desktop
fi
fi
iptables
-A
INPUT
-p
icmp
--icmp-type
echo-request
-j
ACCEPT
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment