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 | |
mirror_list=$(curl -s "https://archlinux.org/mirrors/status/tier/1/json/") | |
mirror_urls=$(echo "${mirror_list}" | jq -r '.urls[] | select(.active == true ) | .url' |grep http) | |
echo "${mirror_urls}" | |
while IFS= read -r url | |
do |
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
#include <linux/kernel.h> | |
#include <linux/module.h> | |
#include <linux/fs.h> | |
#include <asm/uaccess.h> /* for put_user */ | |
/* | |
* Prototypes - this would normally go in a .h file | |
*/ | |
int init_module(void); | |
void cleanup_module(void); |