projects
/
openwrt
/
staging
/
yousong.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
apm821xx: detect sd-card media changes for the WNDR4700
[openwrt/staging/yousong.git]
/
target
/
linux
/
apm821xx
/
base-files
/
etc
/
rc.button
/
BTN_1
1
#!/bin/sh
2
3
.
/
lib
/
functions.sh
4
.
/
lib
/
apm821xx.sh
5
6
BOARD
=
$
(
apm821xx_board_name
)
7
8
if
[
$BOARD
==
"wndr4700"
];
then
9
case
"
$ACTION
"
in
10
released
)
11
rmmod dwc2
12
;;
13
pressed
)
14
modprobe dwc2
15
;;
16
esac
17
fi
18
19
return
0