找回密码
 注册

QQ登录

只需一步,快速开始

查看: 284|回复: 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?# 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
*滑块验证:
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

GMT+8, 2025-6-16 02:35 , Processed in 0.033480 second(s), 5 queries , Redis On.

Powered by Discuz! X3.5 Licensed

Copyright © 2001-2020, Tencent Cloud.

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