annotate backup/macos/startupScripts.sh @ 2024:fa8304b060d9
 
rename launching luan files
 | author | Franklin Schmidt <fschmidt@gmail.com> | 
 | date | Wed, 29 Oct 2025 21:12:53 -0600 | 
 | parents | 45eaaf5146f3 | 
 | children |  | 
 | rev | line source | 
  
| 1693 | 1 cd .. | 
|  | 2 ROOTPWD=$(pwd); | 
|  | 3 | 
|  | 4 user=$(whoami); | 
|  | 5 | 
|  | 6 systemStarup='/Library/LaunchDaemons'; | 
|  | 7 localStartup=${ROOTPWD}'/local/startup'; | 
|  | 8 startup=${ROOTPWD}'/macos'; | 
|  | 9 | 
|  | 10 function addStartup() { | 
|  | 11   cd $localStartup; | 
|  | 12   for file in *.plist; do | 
|  | 13     sudo ln -sf ${localStartup}/${file} ${systemStarup}/${file}; | 
|  | 14     sudo chown root:wheel ${localStartup}/${file}; | 
|  | 15   done; | 
|  | 16 } |