|
this script will execute restorehwmode.sh in shell what if i only want to execute it in su?/ _0 p+ V2 M$ R+ D( r" N) `
#! /bin/sh
, {7 T! j2 f8 Z; H# U$ I6 j* ^, Y& m( y: p. ^- F/ ]
restorehwmode.sh! \$ J( p) L3 R" C8 w# L
sync
1 ?5 a3 k! t r) N+ ~* u/ \sleep 5+ W$ C, r. `+ m
reboot$ F7 g3 Q. R' v2 f$ T( W0 M
-------------------------------------
2 V1 I9 {# S" c& ^the equivalent of that script in manual telnet is! f) Q% |5 w2 {' x) t( v4 ~
, A: s; B" r2 E- q5 Z* ltelnet 192.168.100.19 W3 a' K9 a6 Y" k$ M* m
root% L% I$ F7 ]( v9 D7 B
admin
1 E$ y8 Z2 |' O+ G% L$ _& c
$ G7 p' A0 k7 W0 Csu
E, |' z& u+ c4 o( T, R, Y& C' \% j3 g! F6 h! {+ i. h& v; k
shell
5 p. q/ Z" V$ i0 p) o9 {* Z7 P' M. [# G+ y! S9 C8 l
restorehwmode.sh/ t9 ?0 [7 ]' R' P
9 ?3 z7 N Q% \0 }; kmy question is how to make it execute in only su? not in shell: p6 a; c( `+ W' x+ j
|
|