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
d5e5d26d
Commit
d5e5d26d
authored
8 years ago
by
Bob Mottram
Browse files
Options
Downloads
Patches
Plain Diff
Allow mesh client identity to be reset
parent
70578c77
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
3
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
src/freedombone-image-customise
+9
-1
9 additions, 1 deletion
src/freedombone-image-customise
src/freedombone-image-mesh
+475
-394
475 additions, 394 deletions
src/freedombone-image-mesh
src/freedombone-mesh-reset
+50
-0
50 additions, 0 deletions
src/freedombone-mesh-reset
with
534 additions
and
395 deletions
src/freedombone-image-customise
+
9
−
1
View file @
d5e5d26d
...
...
@@ -574,7 +574,15 @@ function mesh_client_startup_applications {
echo
'Icon=qtox'
>>
$rootdir
/home/
$MY_USERNAME
/Desktop/tox.desktop
echo
'StartupNotify=true'
>>
$rootdir
/home/
$MY_USERNAME
/Desktop/tox.desktop
cp
$rootdir
/home/
$MY_USERNAME
/Desktop/tox.desktop
$rootdir
/home/
$MY_USERNAME
/.config/autostart/tox.desktop
echo
'[Desktop Entry]'
>
$rootdir
/home/
$MY_USERNAME
/Desktop/new_identity.desktop
echo
'Name=New Identity'
>>
$rootdir
/home/
$MY_USERNAME
/Desktop/new_identity.desktop
echo
'Type=Application'
>>
$rootdir
/home/
$MY_USERNAME
/Desktop/new_identity.desktop
echo
'Comment=Create a new identity'
>>
$rootdir
/home/
$MY_USERNAME
/Desktop/new_identity.desktop
echo
'TryExec=freedombone-mesh-reset'
>>
$rootdir
/home/
$MY_USERNAME
/Desktop/new_identity.desktop
echo
'Exec=freedombone-mesh-reset'
>>
$rootdir
/home/
$MY_USERNAME
/Desktop/new_identity.desktop
echo
'Icon=user-away'
>>
$rootdir
/home/
$MY_USERNAME
/Desktop/new_identity.desktop
#cp $rootdir/home/$MY_USERNAME/Desktop/tox.desktop $rootdir/home/$MY_USERNAME/.config/autostart/tox.desktop
chroot
"
$rootdir
"
chown
-R
$MY_USERNAME
:
$MY_USERNAME
/home/
$MY_USERNAME
/.config
}
...
...
This diff is collapsed.
Click to expand it.
src/freedombone-image-mesh
+
475
−
394
View file @
d5e5d26d
This diff is collapsed.
Click to expand it.
src/freedombone-mesh-reset
0 → 100755
+
50
−
0
View file @
d5e5d26d
#!/bin/bash
#
# .---. . .
# | | |
# |--- .--. .-. .-. .-.| .-. .--.--. |.-. .-. .--. .-.
# | | (.-' (.-' ( | ( )| | | | )( )| | (.-'
# ' ' --' --' -' - -' ' ' -' -' -' ' - --'
#
# Freedom in the Cloud
#
# Resets the identity of a mesh user
#
# License
# =======
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU Affero General Public License for more details.
#
# You should have received a copy of the GNU Affero General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
PROJECT_NAME
=
'freedombone'
export
TEXTDOMAIN
=
${
PROJECT_NAME
}
-mesh-reset
export
TEXTDOMAINDIR
=
"/usr/share/locale"
dialog
--title
$"New Identity"
\
--backtitle
$"Freedombone Mesh"
\
--defaultno
\
--yesno
$"
\n
Do you want to reset your identity? This will reset ALL data for this peer, and you will not be able to recover it."
8 60
sel
=
$?
case
$sel
in
0
)
sudo
pkill qtox
sudo
pkill firefox
sudo
pkill iceweasel
sudo
${
PROJECT_NAME
}
-image-mesh
$USER
new
sudo
batman restart
dialog
--title
$"New Identity"
\
--msgbox
$"You now have a new identity"
6 40
;;
esac
exit
0
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