1
0
Fork 0
mirror of https://github.com/NixOS/nixpkgs.git synced 2025-06-24 18:16:21 +03:00

* Updated some more jobs.

svn path=/nixos/branches/upstart-0.6/; revision=18219
This commit is contained in:
Eelco Dolstra 2009-11-06 19:20:09 +00:00
parent 3fcb7c2cb5
commit 676da4d87d
5 changed files with 12 additions and 8 deletions

View file

@ -13,7 +13,7 @@ in
{
jobs.swraid =
{ startOn = "udev"; # !!! or on "new-devices"
{ startOn = "started udev or new-devices";
script =
''
@ -25,6 +25,8 @@ in
# Scan /proc/partitions for RAID devices.
${mdadm}/sbin/mdadm --examine --brief --scan -c partitions > ${tempConf}
if ! test -s ${tempConf}; then exit 0; fi
# Activate each device found.
${mdadm}/sbin/mdadm --assemble -c ${tempConf} --scan