#!/bin/bash # 系统信息函数 if [ $# -eq 0 ]; then hostnamectl --static else command hostnamectl "$@" fi