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
#!/opt/bin/bash | |
# | |
# gsreboot.sh v2.1 - Script to reboot Grandstream ATA | |
# | |
# @author: Walter Purcaro <[email protected]> | |
# @dependencies: bash coreutils-base64 curl grep logger sed | |
# | |
############################################################################### | |
name="$(basename "$0")[$$]" |
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
::Date fixup v0.1 by Walter Purcaro <[email protected]> | |
@ECHO off | |
SET dummydate=02-10-2014 ::proper date to set | |
SET failyear=2000 ::wrong year shown on start | |
IF %date:~6% LEQ %failyear% ( | |
DATE %dummydate% | |
"%windir%\system32\sc.exe" start w32time task_started | |
"%windir%\system32\w32tm.exe" /resync | |
) |
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 | |
# | |
# reconnect.sh v0.2 - Reconnect WAN, for Tomato firmwares | |
# @author: Walter Purcaro <[email protected]> | |
# | |
############################################################################### | |
# Set to 1 if this script was put on its target machine, otherwise set it to 0 and configure all the following settings | |
ITSELF=1 |
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 | |
if [ -d /opt/etc/init.d ] | |
then | |
for f in /opt/etc/init.d/S* | |
do [ -x "$f" ] && $f stop | |
done | |
fi |
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 | |
# | |
# init.autorun v0.3 - Another Tomato init.autorun | |
# @author: Walter Purcaro <[email protected]> | |
# | |
############################################################################### | |
sleep 300 | |
# Load init daemons |
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 | |
# | |
# Opkg Updater v1.4 - Update OPKG packages flawlessly | |
# @author: Walter Purcaro <[email protected]> | |
# | |
############################################################################### | |
VERSION="1.4" | |
trap 'echo Exiting...' INT TERM |
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 | |
# | |
# Shutscsi v0.1 - Unmount and spin down all scsi devices | |
# @author: Walter Purcaro <[email protected]> | |
# | |
############################################################################### | |
# | |
# This script needs fuser and sdparm softwares to run correctly. | |
# Install psmisc and sdparm packages to get them. | |
# |