#!/bin/bash
#Date:2022/4/12
#Author:hejing
#Func:识别新添加的外接硬盘,并自动挂载
if [ `whoami` != 'root' ];then
echo -e "\033[31m 请以root用户执行,Please run as root!\033[0m"
exit 1
fi
clear
function auto_add(){
#获取新添加磁盘的大
shell脚本之自动挂载硬盘并设置开机自启
最新推荐文章于 2023-04-23 09:47:48 发布
![](https://img-home.csdnimg.cn/images/20240711042549.png)