|
|
本人愚钝,求大佬看看,好像不行,不知哪里出错了。
[root@Kwrt:10:24 PM ~] # wget -U "" -O expand-root.sh "https://openwrt.org/_export/code/docs/guide-user/advanced/expand_root?codeblock=0"
--2025-07-01 22:25:37-- https://openwrt.org/_export/code ... nd_root?codeblock=0
Resolving openwrt.org... 64.226.122.113
Connecting to openwrt.org|64.226.122.113|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: unspecified [text/plain]
Saving to: 'expand-root.sh'
expand-root.sh [ <=> ] 1.36K --.-KB/s in 0s
2025-07-01 22:25:38 (49.0 MB/s) - 'expand-root.sh' saved [1388]
[root@Kwrt:10:25 PM ~] # chmod +x expand-root.sh
[root@Kwrt:10:26 PM ~] # /expand-root.sh
-bash: /expand-root.sh: No such file or directory
[root@Kwrt:10:26 PM ~] #
-----------------------------------------------------------------------------------------------------------------------------------
# Configure startup scripts
cat << "EOF" > /etc/uci-defaults/70-rootpt-resize
mount -o remount,rw /
if [ ! -e /etc/rootpt-resize ] \
&& type parted > /dev/null \
&& lock -n /var/lock/root-resize
then |
|