From 18 Jan, 2021 0:00 UTC: All services will be temporary unavailable for maintenance
  • R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Tags
No Tags

Frequently used words (click to add to your profile)

javaandroidc++linuxc#objective-ccocoa誰得qtrubypythonwindowsphpgamebathyscaphegui翻訳comegattwitterframeworkbtronvb.net計画中(planning stage)testdomarduinodirectxpreviewerゲームエンジン

bootable/newinstaller


Commit MetaInfo

Revision0da684c43a7d9df9cea1c3c76dd76baf9f641fa0 (tree)
Time2020-05-13 14:24:32
AuthorChih-Wei Huang <cwhuang@linu...>
CommiterChih-Wei Huang

Log Message

1-install: update symlink if the linked dir is upgraded

Change Summary

Incremental Difference

--- a/install/scripts/1-install
+++ b/install/scripts/1-install
@@ -343,6 +343,9 @@ try_upgrade()
343343 prev=hd/$choice
344344 if [ -d "$prev" ]; then
345345 mv $prev $1
346+ for d in `find hd -type l -maxdepth 1`; do
347+ [ "`readlink $d`" = "$choice" ] && ln -sf `basename $1` $d
348+ done
346349 rm -rf $1/data/dalvik-cache/* $1/data/system/wpa_supplicant
347350 [ -s $1/data/misc/wifi/wpa_supplicant.conf ] && sed -i 's/\(ctrl_interface=\)\(.*\)/\1wlan0/' $1/data/misc/wifi/wpa_supplicant.conf
348351 fi