VirtualBox

Changeset 36314 in vbox


Ignore:
Timestamp:
Mar 18, 2011 2:26:36 PM (14 years ago)
Author:
vboxsync
Message:

Installer/Linux: fix regexes, particularly for old versions of sed

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Installer/linux/routines.sh

    r32542 r36314  
    543543    if test "$ro_INIT_TYPE" = "sysv" -a -r "$scriptname"; then
    544544        orders=`grep '^#['"$spaces"']*chkconfig:' "$scriptname" |
    545             sed -e 's/^#['"$spaces"']*chkconfig:\s*[0-9]*['"$spaces"']*//'`
    546         expr "$orders" : '[0-9]*['"$spaces"']*[0-9]*$' > /dev/null ||
     545            sed -e 's/^#['"$spaces"']*chkconfig:['"$spaces"']*[0-9]*['"$spaces"']*//'`
     546        expr "$orders" : '.*[0-9][0-9]*['"$spaces"']['"$spaces"']*[0-9][0-9]*$' > /dev/null ||
    547547            {
    548548                log "$self: bad or missing chkconfig line in init script $scriptname"
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette