File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 8787 run : |
8888 [ -e files ] && mv files openwrt/files
8989 [ -e $CONFIG_FILE ] && mv $CONFIG_FILE openwrt/.config
90- cd openwrt
91- sed -i 's/192.168.1.1/192.168.30.3/g' package/base-files/files/bin/config_generate # Modify default IP
92- sed -i 's/OpenWrt/OpenWrt-Calmact-x86/g' package/base-files/files/bin/config_generate # Modify hostname
93- [ -z $(grep "CONFIG_KERNEL_BUILD_USER=" .config) ] &&
94- echo 'CONFIG_KERNEL_BUILD_USER="Calmact"' >>.config ||
95- sed -i 's@\(CONFIG_KERNEL_BUILD_USER=\).*@\1$"Calmact"@' .config # Add kernel build user
96- [ -z $(grep "CONFIG_KERNEL_BUILD_DOMAIN=" .config) ] &&
97- echo 'CONFIG_KERNEL_BUILD_DOMAIN="GitHub Actions"' >>.config ||
98- sed -i 's@\(CONFIG_KERNEL_BUILD_DOMAIN=\).*@\1$"GitHub Actions"@' .config # Add kernel build domain
90+ cd openwrt
9991
10092 - name : SSH connection to Actions
10193 uses : P3TERX/ssh2actions@v1.0.0
You can’t perform that action at this time.
0 commit comments