Changeset 3344

Show
Ignore:
Timestamp:
07/25/07 13:06:30 (1 year ago)
Author:
tg
Message:

oops, only change perms if broken

jffs2-minifo is interesting: just on an chown/chmod, it COPIES
THE ENTIRE BUSYBOX EXECUTABLE into jffs2… *shudder*

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/freewrt/package/base-files/Makefile

    r3343 r3344  
    1010PKG_NAME:=              base-files 
    1111PKG_VERSION:=           1.1 
    12 PKG_RELEASE:=           22 
     12PKG_RELEASE:=           23 
    1313WRKDIST=                ${WRKDIR}/base-files 
    1414NO_DISTFILES:=          1 
  • trunk/freewrt/package/base-files/files/etc/preinit

    r3343 r3344  
    4848 
    4949# ensure busybox is suid root and resume booting 
    50 chown 0:0 /bin/busybox 2>/dev/null 
    51 chmod 4111 /bin/busybox 2>/dev/null 
     50if [[ -e /bin/busybox && ! -u /bin/busybox ]]; then 
     51        chown 0:0 /bin/busybox 
     52        chmod 4111 /bin/busybox 
     53fi 
    5254exec /sbin/init