Author: thl
Update of /cvs/free/rpms/staging-kmod-addons/F-20
In directory old02.ovh.rpmfusion.lan:/tmp/cvs-serv13375
Added Files:
create-linux-staging-tarball.sh usbip-client.service
usbip-server.service usbip.configuration
Log Message:
update to 3.12
Index: create-linux-staging-tarball.sh
===================================================================
RCS file: create-linux-staging-tarball.sh
diff -N create-linux-staging-tarball.sh
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ create-linux-staging-tarball.sh 20 Dec 2013 21:10:28 -0000 1.4
@@ -0,0 +1,28 @@
+#! /bin/bash
+if [[ ! "${1}" ]]; then
+ echo "Please give version number as parameter"
+ exit 1
+fi
+
+tmpdir="$(mktemp -td $(basename ${0}).XXXXXXXXX)"
+#targetdir="${PWD}"
+targetdir="$(rpm --eval %{_sourcedir})"
+
+# fixme:
+# * error handling completely missing
+# * remove tmpdir on abortion
+pushd ${tmpdir}/ > /dev/null
+echo downloading
+wget --quiet
http://www.kernel.org/pub/linux/kernel/v3.0/linux-${1}.tar.bz2
+echo extracing
+tar -xjf linux-${1}.tar.bz2 linux-${1}/COPYING linux-${1}/drivers/staging/
linux-${1}/drivers/video/sis/
+echo creating archive
+mv linux-${1} linux-staging-${1}
+# drivers/video/sis/vgatypes.h needed for FB_XGI
+tar -cjf ${targetdir}/linux-staging-${1}.tar.bz2 linux-staging-${1}/COPYING
linux-staging-${1}/drivers/staging/ linux-staging-${1}/drivers/video/sis/
+rm -rf linux-${1}.tar.bz2 linux-staging-${1}/
+popd > /dev/null
+rmdir ${tmpdir}
+echo done: ${targetdir}/linux-staging-${1}.tar.bz2
+
+
--- NEW FILE usbip-client.service ---
[Unit]
Description=USB/IP client modules
After=syslog.target
[Service]
Type=OneShot
RemainAfterExit=true
ExecStart=/sbin/modprobe -qab vhci-hcd
ExecStop=/sbin/modprobe -qabr vhci-hcd
[Install]
WantedBy=multi-user.target
--- NEW FILE usbip-server.service ---
[Unit]
Description=USB/IP server daemon
After=syslog.target
[Service]
EnvironmentFile=-/etc/default/usbip
ExecStartPre=/sbin/modprobe -qab usbip_host
ExecStart=/usr/sbin/usbipd $OPTIONS
ExecStop=/sbin/modprobe -qabr usbip_host
[Install]
WantedBy=multi-user.target
--- NEW FILE usbip.configuration ---
# To enable debugging mode, uncomment the following line
#OPTIONS="-d"