VirtualBox

Changeset 18056 in vbox for trunk/src/VBox


Ignore:
Timestamp:
Mar 18, 2009 12:09:15 PM (16 years ago)
Author:
vboxsync
Message:

Additions/linux/installer: only change the permissions on vboxuser if the device actually exists

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/linux/installer/vboxadd.sh

    r17950 r18056  
    205205        }
    206206    fi
     207    chown $owner:$group $dev 2>/dev/null || {
     208        rm -f $dev 2>/dev/null
     209        rm -f $userdev 2>/dev/null
     210        rmmod vboxadd 2>/dev/null
     211        fail "Cannot change owner $owner:$group for device $dev"
     212    }
     213
    207214    if [ ! -c $userdev ]; then
    208215        maj=10
     
    214221                fail "Cannot create device $userdev with major $maj and minor $min"
    215222            }
    216         fi
    217     fi
    218     chown $owner:$group $dev 2>/dev/null || {
    219         rm -f $dev 2>/dev/null
    220         rm -f $userdev 2>/dev/null
    221         rmmod vboxadd 2>/dev/null
    222         fail "Cannot change owner $owner:$group for device $dev"
    223     }
    224     chown $owner:$group $userdev 2>/dev/null || {
    225         rm -f $dev 2>/dev/null
    226         rm -f $userdev 2>/dev/null
    227         rmmod vboxadd 2>/dev/null
    228         fail "Cannot change owner $owner:$group for device $userdev"
    229     }
     223            chown $owner:$group $userdev 2>/dev/null || {
     224                rm -f $dev 2>/dev/null
     225                rm -f $userdev 2>/dev/null
     226                rmmod vboxadd 2>/dev/null
     227                fail "Cannot change owner $owner:$group for device $userdev"
     228            }
     229        fi
     230    fi
    230231
    231232    if [ -n "$BUILDVBOXVFS" ]; then
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