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
aports
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
648
Issues
648
List
Boards
Labels
Service Desk
Milestones
Merge Requests
197
Merge Requests
197
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
alpine
aports
Commits
af317cb0
Commit
af317cb0
authored
Feb 20, 2009
by
Natanael Copa
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote branch 'clandmeter/master'
parents
15bb3a6d
e9966b78
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
24 additions
and
2 deletions
+24
-2
core/mdadm/APKBUILD
core/mdadm/APKBUILD
+5
-2
core/mdadm/mdadm-raid.initd
core/mdadm/mdadm-raid.initd
+19
-0
No files found.
core/mdadm/APKBUILD
View file @
af317cb0
...
...
@@ -2,7 +2,7 @@
# Maintainer: Carlo Landmeter <clandmeter at gmail>
pkgname
=
mdadm
pkgver
=
2.6.8
pkgrel
=
0
pkgrel
=
1
pkgdesc
=
"a tool for managing Linux Software RAID arrays"
url
=
"http://neil.brown.name/blog/mdadm"
license
=
"GPL-2"
...
...
@@ -12,6 +12,7 @@ subpackages="$pkgname-doc"
source
=
"http://www.kernel.org/pub/linux/utils/raid/
${
pkgname
}
/
${
pkgname
}
-
${
pkgver
}
.tar.gz
${
pkgname
}
.initd
${
pkgname
}
.confd
mdadm-raid.initd
"
build
()
{
...
...
@@ -21,10 +22,12 @@ build() {
make
INSTALL
=
/bin/install
DESTDIR
=
$pkgdir
install
install
-m755
-D
"
$srcdir
"
/
$pkgname
.initd
"
$pkgdir
"
/etc/init.d/
$pkgname
install
-m755
-D
"
$srcdir
"
/
$pkgname
-raid
.initd
"
$pkgdir
"
/etc/init.d/
$pkgname
-raid
install
-m644
-D
"
$srcdir
"
/
$pkgname
.confd
"
$pkgdir
"
/etc/conf.d/
$pkgname
install
-m644
-D
mdadm.conf-example
"
$pkgdir
"
/etc/mdadm.conf
}
md5sums
=
"bcc30968711a078387fba44867eb7a23 mdadm-2.6.8.tar.gz
96b323ba5b778aeb905c119b9547b2a5 mdadm.initd
16d2b8eb2e17184357db503470fdd8eb mdadm.confd"
16d2b8eb2e17184357db503470fdd8eb mdadm.confd
cf60ee08fc4fbed0450c5a2d4efc4214 mdadm-raid.initd"
core/mdadm/mdadm-raid.initd
0 → 100644
View file @
af317cb0
#!/sbin/runscript
# script to start raid devices described in /etc/mdadm.conf.
start() {
[ -f /proc/mdstat ] || modprobe -k md > /dev/null 2>&1
ebegin "Starting RAID devices"
mdadm -A -s -q
eend $?
}
stop() {
# you need to make sure no device is mounted.
if [ -f /etc/mdadm.conf ] ; then
ebegin "Stopping RAID devices"
mdadm --stop -q `awk '/^ARRAY/ { print $2 }' /etc/mdadm.conf`
eend $?
fi
}
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