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
69225e70
Commit
69225e70
authored
9 years ago
by
Bob Mottram
Browse files
Options
Downloads
Patches
Plain Diff
Media menu on control panel
parent
6a56893b
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
man/freedombone.1.gz
+0
-0
0 additions, 0 deletions
man/freedombone.1.gz
src/freedombone-controlpanel
+38
-11
38 additions, 11 deletions
src/freedombone-controlpanel
with
38 additions
and
11 deletions
man/freedombone.1.gz
+
0
−
0
View file @
69225e70
No preview for this file type
This diff is collapsed.
Click to expand it.
src/freedombone-controlpanel
+
38
−
11
View file @
69225e70
...
...
@@ -827,6 +827,31 @@ function menu_hubzilla {
done
}
function
menu_media
{
while
true
do
data
=
$(
tempfile 2>/dev/null
)
trap
"rm -f
$data
"
0 1 2 5 15
dialog
--backtitle
$"Freedombone Control Panel"
\
--title
$"Media Menu"
\
--radiolist
$"Choose an operation:"
13 70 2
\
1
$"Attach a drive containing playable media"
off
\
2
$"Remove a drive containing playable media"
off
\
3
$"Exit"
on 2>
$data
sel
=
$?
case
$sel
in
1
)
break
;;
255
)
break
;;
esac
case
$(
cat
$data
)
in
1
)
remove-music
attach-music
;;
2
)
remove-music
;;
3
)
break
;;
esac
done
}
function
menu_top_level
{
while
true
do
...
...
@@ -834,7 +859,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:"
2
0
70 1
3
\
--radiolist
$"Choose an operation:"
2
1
70 1
4
\
1
$"Backup and Restore"
off
\
2
$"Show SIP Phone Extensions"
off
\
3
$"Reset Tripwire"
off
\
...
...
@@ -843,11 +868,12 @@ function menu_top_level {
6
$"Email Filtering Rules"
off
\
7
$"Security Settings"
off
\
8
$"Hubzilla"
off
\
9
$"Change the name of this system"
off
\
10
$"Check for updates"
off
\
11
$"Power off the system"
off
\
12
$"Restart the system"
off
\
13
$"Exit"
on 2>
$data
9
$"Media menu"
off
\
10
$"Change the name of this system"
off
\
11
$"Check for updates"
off
\
12
$"Power off the system"
off
\
13
$"Restart the system"
off
\
14
$"Exit"
on 2>
$data
sel
=
$?
case
$sel
in
1
)
exit
1
;;
...
...
@@ -862,11 +888,12 @@ function menu_top_level {
6
)
menu_email
;;
7
)
security_settings
;;
8
)
menu_hubzilla
;;
9
)
change_system_name
;;
10
)
check_for_updates
;;
11
)
shut_down_system
;;
12
)
restart_system
;;
13
)
break
;;
9
)
menu_media
;;
10
)
change_system_name
;;
11
)
check_for_updates
;;
12
)
shut_down_system
;;
13
)
restart_system
;;
14
)
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