carl9170 firmware: use sudo to install firmware
authorChristian Lamparter <chunkeey@googlemail.com>
Fri, 23 Jul 2010 00:05:21 +0000 (02:05 +0200)
committerChristian Lamparter <chunkeey@googlemail.com>
Fri, 23 Jul 2010 00:05:21 +0000 (02:05 +0200)
Only a root-user can modify the files under /lib/firmware.

Signed-off-by: Christian Lamparter <chunkeey@googlemail.com>
autogen.sh

index 43dbce6e9bc21a32d2f8639045a4ed1177a2a62f..e530fb1f810d1022032178198d80d270dcb7f51d 100755 (executable)
@@ -28,7 +28,7 @@ case "$1" in
                        echo "Installing firmware..."
                        tmpfwfile=`mktemp`
                        cat carlfw/carl9170.fw carlfw/carl9170.dsc > $tmpfwfile
-                       install $tmpfwfile /lib/firmware/carl9170-$CONFIG_CARL9170FW_RELEASE_VERSION.fw
+                       sudo install $tmpfwfile /lib/firmware/carl9170-$CONFIG_CARL9170FW_RELEASE_VERSION.fw
                        rm $tmpfwfile
                fi
        ;;