Comments (4)
同问
from nanopi-r2s.
默认动作应该是短按释放重启,长按 5s 释放恢复出厂设置。
from nanopi-r2s.
/etc/rc.button/reset
#!/bin/sh
. /lib/functions.sh
OVERLAY="$( grep ' /overlay ' /proc/mounts )"
case "$ACTION" in
pressed)
[ -z "$OVERLAY" ] && return 0
return 5
;;
timeout)
. /etc/diag.sh
set_state failsafe
;;
released)
if [ "$SEEN" -lt 1 ]
then
echo "REBOOT" > /dev/console
sync
reboot
elif [ "$SEEN" -ge 5 -a -n "$OVERLAY" ]
then
echo "FACTORY RESET" > /dev/console
jffs2reset -y && reboot &
fi
;;
esac
return 0
from nanopi-r2s.
刚刚试了下,短按重启确实生效,才连上网。😓
长按不敢试了,感谢大佬解惑。
from nanopi-r2s.
Related Issues (20)
- 作为MESH旁路由使用网速减半 HOT 1
- 求更新,我的usb网卡,只有您这个固件好用 HOT 1
- 本地编译有教程吗? HOT 1
- NAT环回有问题 HOT 2
- 提点需求 HOT 1
- 有病毒?肉鸡 HOT 1
- 请问,openclash插件配置出现问题,如何重置插件? HOT 1
- 大佬 求更新 HOT 3
- trojan-go用不了 HOT 4
- 请问luci-app-cpufreq是直接在config里面加吗
- 端口转发
- rclone安装不了
- 别的地方新版的R2S不能用,只有这里的固件可用
- 您好,R2S型号为rtl8812bu的USB无线网卡驱动能添加进去吗? HOT 3
- privoxy无法使用
- 又来求大佬更新了 HOT 2
- 请问 USB-WIFI 网卡 COMFAST 726B 的问题 HOT 1
- 大佬,能不能提供下CF-927BF 无线网卡的驱动包 HOT 2
- 请问R2S做主路由如何使用IPv6?
- 大佬还更新吗
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nanopi-r2s.