Changeset ce246cd in freewrt


Ignore:
Timestamp:
Aug 2, 2007, 3:09:19 PM (18 years ago)
Author:
Thorsten Glaser <tg@…>
Children:
cf711c2
Parents:
540b38cb
Message:

| x=$(<foo)
fails if foo doesn't exist.

| x=$(<foo
:)

does not work: x is always empty.

git-svn-id: svn://www.freewrt.org/trunk/freewrt@3385 afb5a338-a214-0410-bd46-81f09a774fd1

Location:
package/base-files
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • package/base-files/Makefile

    r540b38cb rce246cd  
    1010PKG_NAME:=              base-files
    1111PKG_VERSION:=           1.1
    12 PKG_RELEASE:=           24
     12PKG_RELEASE:=           25
    1313WRKDIST=                ${WRKDIR}/base-files
    1414NO_DISTFILES:=          1
  • package/base-files/files/etc/init.d/boot

    r540b38cb rce246cd  
    1111[[ $FAILSAFE = true ]] && touch /tmp/.failsafe
    1212
    13 HOSTNAME=$(</etc/hostname)
     13HOSTNAME=
     14[[ -s /etc/hostname ]] && HOSTNAME=$(</etc/hostname)
    1415HOSTNAME=${HOSTNAME%%.*}
    1516echo ${HOSTNAME:=FreeWRT} >/proc/sys/kernel/hostname
  • package/base-files/files/etc/init.d/hotplug

    r540b38cb rce246cd  
    44stop|autostop)
    55        export ACTION=remove
    6         ls /tmp/.*_id >/dev/null 2>&1 || exit 0
    76        for d in /tmp/.*_id; do
     7                [[ -e $d ]] || break
    88                INTERFACE="$(<$d)" /sbin/hotplug usb
    99        done
Note: See TracChangeset for help on using the changeset viewer.