找回密码
 注册

QQ登录

只需一步,快速开始

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

本版积分规则

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

GMT+8, 2025-7-31 23:00 , Processed in 0.063458 second(s), 5 queries , Redis On.

Powered by Discuz! X3.5 Licensed

Copyright © 2001-2020, Tencent Cloud.

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