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
76b24ec2
Commit
76b24ec2
authored
7 years ago
by
Bob Mottram
Browse files
Options
Downloads
Patches
Plain Diff
Create addremove script
parent
19897c5e
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
Makefile
+1
-0
1 addition, 0 deletions
Makefile
src/freedombone-addremove
+6
-2
6 additions, 2 deletions
src/freedombone-addremove
src/freedombone-controlpanel
+1
-1
1 addition, 1 deletion
src/freedombone-controlpanel
src/freedombone-prepare-scripts
+3
-0
3 additions, 0 deletions
src/freedombone-prepare-scripts
with
11 additions
and
3 deletions
Makefile
+
1
−
0
View file @
76b24ec2
...
...
@@ -64,6 +64,7 @@ uninstall:
rm
-rf
/etc/
${
APP
}
rm
-f
${
PREFIX
}
/bin/control
rm
-f
${
PREFIX
}
/bin/controluser
rm
-f
${
PREFIX
}
/bin/addremove
bash
-c
"./translate uninstall"
clean
:
rm
-f
\#
*
\.
#* debian/*.substvars debian/*.log src/*~
...
...
This diff is collapsed.
Click to expand it.
src/freedombone-addremove
+
6
−
2
View file @
76b24ec2
...
...
@@ -38,11 +38,13 @@ if [ -f /usr/bin/${PROJECT_NAME} ]; then
PROJECT_INSTALL_DIR
=
/usr/bin
fi
source
$PROJECT_INSTALL_DIR
/
${
PROJECT_NAME
}
-vars
COMPLETION_FILE
=
$HOME
/
${
PROJECT_NAME
}
-completed
.txt
CONFIGURATION_FILE
=
$HOME
/
${
PROJECT_NAME
}
.cfg
# Start including files
source
$PROJECT_INSTALL_DIR
/
${
PROJECT_NAME
}
-vars
UTILS_FILES
=
/usr/share/
${
PROJECT_NAME
}
/utils/
${
PROJECT_NAME
}
-utils-
*
for
f
in
$UTILS_FILES
do
...
...
@@ -55,6 +57,8 @@ do
source
$f
done
# End including files
function
mark_unselected_apps_as_removed
{
# Initially mark the apps not chosen on first install as being removed
# otherwise they may be automatically installed on the next update
...
...
This diff is collapsed.
Click to expand it.
src/freedombone-controlpanel
+
1
−
1
View file @
76b24ec2
...
...
@@ -2135,7 +2135,7 @@ function menu_top_level {
4
)
show_firewall
;;
5
)
reset_tripwire
;;
6
)
menu_app_settings
;;
7
)
${
PROJECT_NAME
}
-
addremove
7
)
/usr/local/bin/
addremove
if
[
!
"
$?
"
=
"0"
]
;
then
any_key
fi
...
...
This diff is collapsed.
Click to expand it.
src/freedombone-prepare-scripts
+
3
−
0
View file @
76b24ec2
...
...
@@ -34,12 +34,15 @@ cat /usr/local/bin/${PROJECT_NAME}-vars /usr/share/${PROJECT_NAME}/utils/${PROJE
cat
/tmp/includescripts /usr/local/bin/freedombone-controlpanel
>
/usr/local/bin/control
cat
/tmp/includescripts /usr/local/bin/freedombone-controlpanel-user
>
/usr/local/bin/controluser
cat
/tmp/includescripts /usr/local/bin/freedombone-addremove
>
/usr/local/bin/addremove
sed
-i
'/# Start including files/,/# End including files/d'
/usr/local/bin/control
sed
-i
'/# Start including files/,/# End including files/d'
/usr/local/bin/controluser
sed
-i
'/# Start including files/,/# End including files/d'
/usr/local/bin/addremove
chmod
+x /usr/local/bin/control
chmod
+x /usr/local/bin/controluser
chmod
+x /usr/local/bin/addremove
rm
/tmp/includescripts
...
...
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