|
this script will execute restorehwmode.sh in shell what if i only want to execute it in su?# B4 M Q1 M9 [' X
#! /bin/sh' q. `& Y. K& u! a% ]. }6 K
- d4 H n; o5 Arestorehwmode.sh
* u+ r2 V* }! K$ e0 e/ Hsync
7 F) h5 U. _- c) }0 B' Vsleep 5/ i# S& S. [- Y9 Q5 Q
reboot# c/ |4 Q) @- V% `
-------------------------------------+ z8 H6 v* r# ^6 t( M! b' x
the equivalent of that script in manual telnet is2 s& t& a9 X. c- _& P; D
, A! F$ ^: i( ztelnet 192.168.100.1 r, v9 w" H# L
root
" E: L8 \+ N, `* ^( W- Uadmin* O$ t5 X+ R. z" D+ f3 H
* h7 N6 I, l% Y# ^1 F. T k1 F
su
/ K; }, i( v8 v1 w% U. f
6 _9 B) O2 w2 t2 e4 O. x7 ^6 nshell8 Q! I; ]7 j3 i3 k, \4 w" ~ ]
7 o" ?5 b+ [/ Y' _restorehwmode.sh0 [2 P$ R2 I4 ]) \
& O+ O: W9 S- p3 W4 s# @my question is how to make it execute in only su? not in shell3 F6 P3 G& y+ U/ q8 z1 K
|
|