Changeset 47947


Ignore:
Timestamp:
2015-12-19T12:28:30+01:00 (2 years ago)
Author:
nbd
Message:

ar71xx: refactor 10-ath9k-eeprom

move all library includes and 'firmware already exists'
check to the top of the script.

Signed-off-by: Chris R Blake <chrisrblake93@…>

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/target/linux/ar71xx/base-files/etc/hotplug.d/firmware/10-ath9k-eeprom

    r47878 r47947  
    11#!/bin/sh 
     2 
     3[ -e /lib/firmware/$FIRMWARE ] && exit 0 
     4 
     5. /lib/ar71xx.sh 
     6. /lib/functions.sh 
     7. /lib/functions/system.sh 
    28 
    39ath9k_eeprom_die() { 
     
    2733        macaddr_2bin $mac | dd of=/lib/firmware/$FIRMWARE conv=notrunc bs=1 seek=2 count=6 
    2834} 
    29  
    30 [ -e /lib/firmware/$FIRMWARE ] && exit 0 
    31  
    32 . /lib/ar71xx.sh 
    33 . /lib/functions.sh 
    34 . /lib/functions/system.sh 
    3535 
    3636board=$(ar71xx_board_name) 
Note: See TracChangeset for help on using the changeset viewer.