Permalink
Cannot retrieve contributors at this time
Name already in use
A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
bee-files/cron-checkpciids.sh
Go to fileThis commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
executable file
15 lines (15 sloc)
539 Bytes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
http_proxy=beehive:3128 | |
wget --quiet http://pci-ids.ucw.cz/v2.2/pci.ids -O pci.ids | |
( cd /usr/share/hwdata && md5sum pci.ids ) > pci.ids.md5 | |
PCIVER=$(grep -Pom1 '\bVersion:\s*\K\S+' pci.ids) | |
md5sum --status -c pci.ids.md5 | |
if [ $? == 1 ]; then | |
( | |
echo | |
md5sum=($(/src/mariux/md5repo.sh pci.ids)) | |
echo "cd ~/git/bee-files;scripts/bump-pciutils.sh ${PCIVER} ${md5sum[2]}" | |
echo | |
diff {/usr/share/hwdata/,}pci.ids | |
) | mailx -s "[cron] please update pci-utils.be0" wwwutz@molgen.mpg.de | |
fi |