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 | |
zfs snap -r nvme@end | |
zfs rollback -r main-pool/backup/nvme@begen | |
zfs send -R -I nvme@begen nvme@end | zfs receive -v main-pool/backup/nvme | |
zfs destroy -R nvme@begen | |
zfs destroy -R main-pool/backup/nvme@begen | |
zfs rename -r nvme@end nvme@begen | |
zfs rename -r main-pool/backup/nvme@end main-pool/backup/nvme@begen |
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/sh | |
while true | |
do | |
echo " CPU temp :" | |
sysctl -a |egrep -E "cpu\.[0-9]+\.temp" | |
echo | |
echo " HDD temp :" | |
for i in $(sysctl -n kern.disks) | |
do | |
DevTemp=`smartctl -a /dev/$i | awk '/Temperature_Celsius/{print $0}' | awk '{print $10 "C"}'` |
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
[Unit] | |
Description=H@H Server | |
Documentation=https://e-hentai.org/hentaiathome.php | |
Requires=network.target | |
After=network.target | |
[Service] | |
Type=simple | |
User=root | |
WorkingDirectory=/root/hh/ |
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/sh | |
killall pppd | |
sleep 3 | |
pppd file /tmp/ppp/options.wan0 | |
sleep 10 | |
ping 8.8.8.8 -c 5 | |
echo "===========================================" | |
curl myip.ipip.net |
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
nvram set local_domain=$(nvram get lan_ipaddr) | |
nvram commit |