|
this script will execute restorehwmode.sh in shell what if i only want to execute it in su?- F! u! V4 s$ j, k3 C# Q
#! /bin/sh6 v9 S! a( z5 f0 k
7 W6 l/ l& J! W: ]* M; V
restorehwmode.sh. X/ C6 r3 W3 s, g$ I
sync
6 q( _" ^' j* xsleep 5
; j b# n: o9 n4 G0 c; @reboot
0 `3 q2 J4 D. y/ _$ i' M1 g-------------------------------------
L7 Q9 F; A" |1 c8 E" N3 H( }the equivalent of that script in manual telnet is
9 Z4 s$ @0 |9 d" {& v8 o" P- T
% n/ d9 ` b M6 @. Otelnet 192.168.100.1
: E0 f" a/ G& ~root
6 T+ H1 K) c1 Badmin9 F* f8 C; }0 Z7 f+ [8 T
, U6 f7 Y$ ]# ]4 F
su1 Y9 Q$ X( `/ `% {8 D" I- [
' c$ D5 F r* o8 J' e+ `4 ^" ?
shell
" v% f# o$ j# v1 h7 s1 Z
1 C: N2 h, G% s& l _1 lrestorehwmode.sh( v+ ^- D: C) _$ n, w" v. ^2 A$ e! w
" ?" J. r1 Z4 t3 D* ~: h& w" r5 `my question is how to make it execute in only su? not in shell+ C0 Q& }: V; O% Y" n
|
|