Changeset 1471


Ignore:
Timestamp:
Oct 31, 2008, 10:53:17 PM (16 years ago)
Author:
price
Message:

simplify some shell code

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/packages/invirt-xen-config/debian/invirt-xen-config.init

    r1462 r1471  
    1414DESC="Invirt Xen host"
    1515PARENTPACKAGE=xend
    16 GEN_FILES=(/etc/xen/xend-config.sxp.invirt)
    1716SYSVMS=(s_master s_remote s_console)
    18 i=1
    19 for vm in "${SYSVMS[@]}"; do
    20     GEN_FILES[$i]="/etc/xen/sysvms/$vm"
    21     i=$((i + 1))
    22 done
     17GEN_FILES=(/etc/xen/xend-config.sxp.invirt "${SYSVMS[@]/#//etc/xen/sysvms/}")
    2318
    2419dpkg -s "$PACKAGE" >/dev/null 2>/dev/null || exit 0
Note: See TracChangeset for help on using the changeset viewer.