32 lines
1.1 KiB
Bash
Executable File
32 lines
1.1 KiB
Bash
Executable File
#!/bin/sh
|
|
|
|
# get-digium-firmware: Download firmware for Digium's hardware.
|
|
#
|
|
# This script is a trivial wrapper around the Makefile originally from
|
|
# drivers/dahdi/firmware in the dahdi-linux source distribution.
|
|
|
|
# Written by Tzafrir Cohen <tzafrir.cohen@xorcom.com>
|
|
# Copyright (C) 2009, Xorcom
|
|
#
|
|
# All rights reserved.
|
|
#
|
|
# 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 2 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, If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
DIGIUM_FIRMWARE_DIR="/var/lib/dahdi/digium-firm"
|
|
|
|
make -C "$DIGIUM_FIRMWARE_DIR" \
|
|
HOTPLUG_FIRMWARE=yes \
|
|
INSTALL_FIRMWARE=/usr/share/dahdi/install_firmware \
|
|
hotplug-install
|