Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:jjacque:NVIDIA
x11-video-nvidiaG05
generate-service-file.sh
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File generate-service-file.sh of Package x11-video-nvidiaG05
#!/bin/bash driver_version=$(grep -i ^version: nvidia-gfxG0?.spec |awk '{print $2}') for arch in x86_64; do file=NVIDIA-Linux-${arch}-${driver_version}.run if [ ! -s ${file} ]; then echo -n "Dowloading ${file} ... " curl -s -o $file https://download.nvidia.com/XFree86/Linux-${arch}/${driver_version}/$file echo "done" fi done for arch in x86_64; do file=NVIDIA-Linux-${arch}-${driver_version}.run test -f ${file} if [ $? -ne 0 ]; then echo "${file} not available. Download failed? Exiting." exit 1 else echo -n "Checking ${file}: " sh ./${file} --check if [ $? -ne 0 ]; then rm ${file} echo "Check failed. Corrupt {file} removed. Download failed? Exiting." exit 1 fi fi done which sha256sum &> /dev/null if [ $? -ne 0 ]; then echo "sha256sum not available! Exiting." exit 1 fi sha256sum_x86_64=$(sha256sum NVIDIA-Linux-x86_64-${driver_version}.run | awk '{print $1}') echo -n "Creating _service file ..." cat << EOF > _service <services> <service name="download_files" mode="disabled"/> <service name="verify_file" mode="disabled"> <param name="file">NVIDIA-Linux-x86_64-${driver_version}.run</param> <param name="verifier">sha256</param> <param name="checksum">${sha256sum_x86_64}</param> </service> </services> EOF echo done
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