找回密码
 注册

QQ登录

只需一步,快速开始

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

本版积分规则

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

GMT+8, 2025-6-17 10:08 , Processed in 0.022601 second(s), 5 queries , Redis On.

Powered by Discuz! X3.5 Licensed

Copyright © 2001-2020, Tencent Cloud.

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