查看: 835|回复: 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?
#! /bin/sh

restorehwmode.sh
sync
sleep 5
reboot
-------------------------------------
the equivalent of that script in manual telnet is

telnet 192.168.100.1
root
admin

su

shell

restorehwmode.sh

my question is how to make it execute in only su? not in shell
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

关闭

站长推荐上一条 /1 下一条

相关侵权、举报、投诉及建议等,请发 E-mail:yesdong@qq.com

Powered by Discuz! X5.0 Licensed © 2001-2026 Discuz! Team.44152102000001

在本版发帖QQ客服返回顶部