projects
/
openwrt
/
staging
/
chunkeey.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
make basefiles aware of procd
[openwrt/staging/chunkeey.git]
/
package
/
base-files
/
files
/
etc
/
rc.button
/
reset
1
#!/bin/sh
2
3
[
"
${ACTION}
"
=
"released"
]
||
exit
0
4
5
.
/
lib
/
functions.sh
6
7
logger
"
$BUTTON
pressed for
$SEEN
seconds"
8
9
if
[
"
$SEEN
"
-lt
1
]
10
then
11
echo
"REBOOT"
> /
dev
/
console
12
sync
13
reboot
14
elif
[
"
$SEEN
"
-gt
5
]
15
then
16
echo
"FACTORY RESET"
> /
dev
/
console
17
firstboot
&&
reboot
&
18
fi