annotate macos/startupScripts.sh @ 26:d3b72a8bfbe9
default tip
Add rate limiting, change moveLogs.sh to only operate on non-empty files
| author |
Violet7 |
| date |
Sat, 01 Nov 2025 22:12:56 -0700 |
| parents |
dfc36e7ed22c |
| children |
|
| rev |
line source |
|
0
|
1 cd ..
|
|
|
2 ROOTPWD=$(pwd);
|
|
|
3 IP=$(ifconfig en0 | awk '{if($0~"inet "){print $2}}');
|
|
|
4
|
|
|
5 user=$(whoami);
|
|
|
6
|
|
|
7 systemStarup='/Library/LaunchDaemons';
|
|
|
8 localStartup=${ROOTPWD}'/local/startup';
|
|
|
9 startup=${ROOTPWD}'/macos';
|
|
|
10
|
|
|
11 function addStartup() {
|
|
|
12 cd $localStartup;
|
|
|
13 for file in *.plist; do
|
|
|
14 sudo ln -sf ${localStartup}/${file} ${systemStarup}/${file};
|
|
|
15 sudo chown root:wheel ${localStartup}/${file};
|
|
|
16 done;
|
|
|
17 }
|