找回密码
 注册

QQ登录

只需一步,快速开始

查看: 222|回复: 0

Script for .bin file

[复制链接]
发表于 2024-12-30 19:27:29 | 显示全部楼层 |阅读模式
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
*滑块验证:
您需要登录后才可以回帖 登录 | 注册

本版积分规则

Archiver|小黑屋|宽带技术网 |网站地图 粤公网安备44152102000001号

GMT+8, 2025-5-2 09:47 , Processed in 0.020793 second(s), 5 queries , Redis On.

Powered by Discuz! X3.5 Licensed

Copyright © 2001-2020, Tencent Cloud.

快速回复 返回顶部 返回列表