mirror of
https://github.com/raspberrypi/rpi-update.git
synced 2026-01-20 21:13:38 +08:00
@@ -42,7 +42,7 @@ function update_self() {
|
|||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
cat > /tmp/updateScript.sh << EOF
|
cat > /root/.updateScript.sh << EOF
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
if mv "${_tempFileName}" "$0"; then
|
if mv "${_tempFileName}" "$0"; then
|
||||||
rm -- "\$0"
|
rm -- "\$0"
|
||||||
@@ -53,7 +53,7 @@ function update_self() {
|
|||||||
EOF
|
EOF
|
||||||
|
|
||||||
echo " *** Relaunching after update"
|
echo " *** Relaunching after update"
|
||||||
exec /bin/bash /tmp/updateScript.sh
|
exec /bin/bash /root/.updateScript.sh
|
||||||
}
|
}
|
||||||
|
|
||||||
function update_modules {
|
function update_modules {
|
||||||
|
|||||||
Reference in New Issue
Block a user