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
/*When presented with failure | |
*igb-3.4.8/src/igb_main.c:193: error: implicit declaration of function SET_RUNTIME_PM_OPS | |
* | |
*Add the following macro to | |
*/usr/src/linux-headers-2.6.32-5-common/include/linux/pm.h | |
*/ | |
#ifdef CONFIG_PM_RUNTIME | |
#define SET_RUNTIME_PM_OPS(suspend_fn, resume_fn, idle_fn) \ | |
.runtime_suspend = suspend_fn, \ | |
.runtime_resume = resume_fn, \ |
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 | |
# simple function to check http response code before downloading a remote file | |
# example usage: | |
# if `validate_url $url >/dev/null`; then dosomething; else echo "does not exist"; fi | |
function validate_url(){ |
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 | |
##This can be on /bin/ or /usr/bin or any site of your $PATH | |
####Based on https://gist.github.com/guerrerocarlos/3977495 | |
if [[ ! -n "$1" ]];then | |
echo "Archivo no ingresado" | |
exit | |
fi |