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
f40cb8f8
Commit
f40cb8f8
authored
9 years ago
by
Bob Mottram
Browse files
Options
Downloads
Patches
Plain Diff
Check for updates on the control panel
parent
4e92dd89
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/freedombone-controlpanel
+22
-7
22 additions, 7 deletions
src/freedombone-controlpanel
with
22 additions
and
7 deletions
src/freedombone-controlpanel
+
22
−
7
View file @
f40cb8f8
...
...
@@ -32,12 +32,25 @@ COMPLETION_FILE=$HOME/freedombone-completed.txt
SELECTED_USERNAME
=
SIP_CONFIG_FILE
=
/etc/sipwitch.conf
ADMIN_USER
=
UPGRADE_SCRIPT_NAME
=
"freedombone-upgrade"
function
any_key
{
echo
' '
read
-n1
-r
-p
"Press any key to continue..."
key
}
function
check_for_updates
{
if
[
!
-f
/etc/cron.weekly/
$UPGRADE_SCRIPT_NAME
]
;
then
dialog
--title
"Check for updates"
\
--msgbox
"Upgrade script was not found"
6 40
return
fi
clear
./etc/cron.weekly/
$UPGRADE_SCRIPT_NAME
any_key
}
function
add_user
{
data
=
$(
tempfile 2>/dev/null
)
trap
"rm -f
$data
"
0 1 2 5 15
...
...
@@ -789,7 +802,7 @@ function menu_top_level {
trap
"rm -f
$data
"
0 1 2 5 15
dialog
--backtitle
"Freedombone Control Panel"
\
--title
"Control Panel"
\
--radiolist
"Choose an operation:"
1
8
70 1
1
\
--radiolist
"Choose an operation:"
1
9
70 1
2
\
1
"Backup and Restore"
off
\
2
"Show SIP Phone Extensions"
off
\
3
"Reset Tripwire"
off
\
...
...
@@ -798,9 +811,10 @@ function menu_top_level {
6
"Email Filtering Rules"
off
\
7
"Security Settings"
off
\
8
"Hubzilla"
off
\
9
"Power off the system"
off
\
10
"Restart the system"
off
\
11
"Exit"
on 2>
$data
9
"Check for updates"
off
\
10
"Power off the system"
off
\
11
"Restart the system"
off
\
12
"Exit"
on 2>
$data
sel
=
$?
case
$sel
in
1
)
exit
1
;;
...
...
@@ -815,9 +829,10 @@ function menu_top_level {
6
)
menu_email
;;
7
)
security_settings
;;
8
)
menu_hubzilla
;;
9
)
shut_down_system
;;
10
)
restart_system
;;
11
)
break
;;
9
)
check_for_updates
;;
10
)
shut_down_system
;;
11
)
restart_system
;;
12
)
break
;;
esac
done
}
...
...
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