Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:mwietrzy
usbip
extract_usbip.sh
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File extract_usbip.sh of Package usbip
#!/bin/sh if [ "q$1" == "q" ]; then echo "Usage: $0 <kernel version>" exit 1 fi echo "Extracting linux source" tar -xf "linux-$1".tar.xz if [ "$?" -ne "0" ]; then echo "Error extracting kernel source" exit 1 fi if [ -d "usbip-$1" ]; then rm -rf "usbip-$1" fi mv "linux-${1}"/tools/usb/usbip "usbip-$1" echo "Creating usbip archive" tar -cJvf "usbip-$1".tar.xz "usbip-$1" rm -rf "linux-$1" rm -rf "usbip-$1"
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor