Skip to content

Instantly share code, notes, and snippets.

@fabaff
Created June 22, 2013 16:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save fabaff/5841487 to your computer and use it in GitHub Desktop.
Save fabaff/5841487 to your computer and use it in GitHub Desktop.
A simple bash script to put the Qualcomm firmware in place on a Lenovo T410.
#!/usr/bin/bash
#
# This simple script put the Qualcomm firmware in place to use with gobi_loader.
#
# Copyright (c) 2013 Fabian Affolter <fabian@affolter-engineering.ch>
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
DEST=/lib/firmware/gobi
echo -n "Please enter your firmware source directory: "
read SRC
# Check if gobi_loader is available
if [ ! -e /usr/lib/udev/gobi_loader ]
then
echo "gobi_loader is not installed. Installation starts now ..."
yum -y install gobi_loader
fi
mkdir -p $DEST
cp $SRC/* $DEST
echo "Firmware files to copied $DEST. Restart your machine."
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment