Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
alpine-conf
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
19
Issues
19
List
Boards
Labels
Service Desk
Milestones
Merge Requests
2
Merge Requests
2
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
alpine
alpine-conf
Commits
6c2d576c
Commit
6c2d576c
authored
Feb 15, 2010
by
Natanael Copa
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
setup-disk: added usage text
parent
fc19274f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
1 deletion
+18
-1
setup-disk.in
setup-disk.in
+18
-1
No files found.
setup-disk.in
View file @
6c2d576c
...
...
@@ -368,17 +368,34 @@ EOF
install_mounted_root /mnt
}
usage
()
{
cat
<<
__EOF__
usage: setup-disk [-hr] [-k kernelflavor] [-o apkovl] [MOUNTPOINT]
Install alpine on harddisk.
options:
-h Show this help
-o Restore system from given apkovl file
-k Use kernelflavor instead of
$KERNEL_FLAVOR
-r Enable software raid1 with single disk
__EOF__
exit
1
}
KERNEL_FLAVOR
=
grsec
case
"
$(
uname
-r
)
"
in
*
-vs
[
0-9]
*
)
KERNEL_FLAVOR
=
vserver
;;
esac
# Parse args
while
getopts
"k:o:r"
opt
;
do
while
getopts
"
h
k:o:r"
opt
;
do
case
$opt
in
k
)
KERNEL_FLAVOR
=
"
$OPTARG
"
;;
r
)
USE_RAID
=
1
;;
o
)
APKOVL
=
"
$OPTARG
"
;;
*
)
usage
;;
esac
done
shift
$((
OPTIND
-
1
))
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment