找回密码
 注册

QQ登录

只需一步,快速开始

查看: 218|回复: 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?' A" P( {+ m' ]) L- g1 Q
#! /bin/sh
3 }2 Q  D0 _9 A) s
! O7 e" A6 a8 y5 ~1 qrestorehwmode.sh
& h% Z; B# B" x8 c) J. psync$ ]& F1 [0 V* ~$ J7 [2 o8 l9 y
sleep 5
# w3 S) ]: k  g; u  G; x0 C4 Dreboot
+ K: ^& C1 J$ J6 z! s* C-------------------------------------7 M( j7 u5 B- x: J$ \& P
the equivalent of that script in manual telnet is
2 z2 \2 u. Q) |6 W. W; a0 d4 F
& N. j0 X% k2 ]" X- |8 ~telnet 192.168.100.1! K3 ?" h! h5 t' m
root
' ~8 W- V3 h/ t2 o0 `/ v. R% ~admin7 \0 ~8 {- s8 d5 Q
0 F5 E! t  s9 Z
su
" U  _' G" ?1 [' ^/ Y; P# S2 ?6 e( r- R
shell
4 K/ m/ d$ G: a2 J& V2 v/ q5 c& O6 m5 D: `' [; G  i3 B: ~
restorehwmode.sh
  ]9 [$ G& Q2 ~: {' s* G" I
; m( L3 f3 R1 k" k: K0 fmy question is how to make it execute in only su? not in shell
! v" e; ]7 A8 i2 i1 ]  o
*滑块验证:
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

GMT+8, 2025-5-1 22:48 , Processed in 0.050037 second(s), 7 queries , Redis On.

Powered by Discuz! X3.5 Licensed

Copyright © 2001-2020, Tencent Cloud.

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