Skip to content

Commit

Permalink
improve stability
Browse files Browse the repository at this point in the history
  • Loading branch information
0x1iii1ii committed Sep 9, 2024
1 parent 3021b18 commit c406baa
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ ______________________________
EOF

echo ""
echo "★ v1.2.2"
echo "★ v1.2.3"
echo ""
echo "by: https://github.com/0x1iii1ii/PPPwn-Luckfox"
echo "credit to:"
Expand Down Expand Up @@ -178,7 +178,7 @@ if [ ! -f "$CONFIG_FILE" ]; then
"GROOM_DELAY": "4",
"BUFFER_SIZE": "0",
"AUTO_RETRY": true,
"NO_WAIT_PADI": true,
"NO_WAIT_PADI": false,
"REAL_SLEEP": false,
"AUTO_START": true,
"HALT_CHOICE": $HALT_CHOICE,
Expand Down
6 changes: 3 additions & 3 deletions run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -41,16 +41,16 @@ reseteth() {
ifconfig eth0 down
sleep 1
ifconfig eth0 up
sleep 1
sleep 3
}

if [ "$AUTO_START" = "true" ]; then
/etc/init.d/S50nginx stop
/etc/init.d/S49php-fpm stop
> $LOG_FILE
>$LOG_FILE
sleep 1
reseteth
$CMD >> $LOG_FILE 2>&1
$CMD >>$LOG_FILE 2>&1
if grep -q "\[+\] Done!" $LOG_FILE; then
echo "PPPwned"
if [ "$HALT_CHOICE" = "true" ]; then
Expand Down
6 changes: 3 additions & 3 deletions web-run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -41,16 +41,16 @@ reseteth() {
ifconfig eth0 down
sleep 1
ifconfig eth0 up
sleep 1
sleep 3
}

killall nginx
killall php-fpm
killall pppoe-server
> $LOG_FILE
>$LOG_FILE
sleep 1
reseteth
$CMD >> $LOG_FILE 2>&1
$CMD >>$LOG_FILE 2>&1
if grep -q "\[+\] Done!" $LOG_FILE; then
sleep 5
reseteth
Expand Down

0 comments on commit c406baa

Please sign in to comment.