Merge pull request #26 from sickcodes/efi-remove

EFI Remove, fix scan policy
This commit is contained in:
sickcodes 2022-11-19 10:35:40 +00:00 committed by GitHub
commit 6568c9d8c7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 7 additions and 23 deletions

View file

@ -1064,10 +1064,8 @@
<array/> <array/>
<key>Security</key> <key>Security</key>
<dict> <dict>
<key>AllowNvramReset</key>
<true/>
<key>AllowSetDefault</key> <key>AllowSetDefault</key>
<false/> <true/>
<key>ApECID</key> <key>ApECID</key>
<integer>0</integer> <integer>0</integer>
<key>AuthRestart</key> <key>AuthRestart</key>
@ -1087,7 +1085,7 @@
<key>PasswordSalt</key> <key>PasswordSalt</key>
<data></data> <data></data>
<key>ScanPolicy</key> <key>ScanPolicy</key>
<integer>13056</integer> <integer>2687747</integer>
<key>SecureBootModel</key> <key>SecureBootModel</key>
<string>Disabled</string> <string>Disabled</string>
<key>Vault</key> <key>Vault</key>
@ -1221,8 +1219,6 @@
<string>ForceDisplayRotationInEFI</string> <string>ForceDisplayRotationInEFI</string>
</array> </array>
</dict> </dict>
<key>LegacyEnable</key>
<false/>
<key>LegacyOverwrite</key> <key>LegacyOverwrite</key>
<false/> <false/>
<key>LegacySchema</key> <key>LegacySchema</key>
@ -1273,9 +1269,7 @@
<key>ProcessorType</key> <key>ProcessorType</key>
<integer>0</integer> <integer>0</integer>
<key>ROM</key> <key>ROM</key>
<data> <string>{{ROM}}</string>
{{ROM}}
</data>
<key>SpoofVendor</key> <key>SpoofVendor</key>
<true/> <true/>
<key>SystemMemoryStatus</key> <key>SystemMemoryStatus</key>
@ -1362,8 +1356,6 @@
<false/> <false/>
<key>SetupDelay</key> <key>SetupDelay</key>
<integer>0</integer> <integer>0</integer>
<key>VolumeAmplifier</key>
<integer>0</integer>
</dict> </dict>
<key>ConnectDrivers</key> <key>ConnectDrivers</key>
<true/> <true/>

View file

@ -1064,10 +1064,8 @@
<array/> <array/>
<key>Security</key> <key>Security</key>
<dict> <dict>
<key>AllowNvramReset</key>
<true/>
<key>AllowSetDefault</key> <key>AllowSetDefault</key>
<false/> <true/>
<key>ApECID</key> <key>ApECID</key>
<integer>0</integer> <integer>0</integer>
<key>AuthRestart</key> <key>AuthRestart</key>
@ -1087,7 +1085,7 @@
<key>PasswordSalt</key> <key>PasswordSalt</key>
<data></data> <data></data>
<key>ScanPolicy</key> <key>ScanPolicy</key>
<integer>13056</integer> <integer>2687747</integer>
<key>SecureBootModel</key> <key>SecureBootModel</key>
<string>Disabled</string> <string>Disabled</string>
<key>Vault</key> <key>Vault</key>
@ -1221,8 +1219,6 @@
<string>ForceDisplayRotationInEFI</string> <string>ForceDisplayRotationInEFI</string>
</array> </array>
</dict> </dict>
<key>LegacyEnable</key>
<false/>
<key>LegacyOverwrite</key> <key>LegacyOverwrite</key>
<false/> <false/>
<key>LegacySchema</key> <key>LegacySchema</key>
@ -1273,9 +1269,7 @@
<key>ProcessorType</key> <key>ProcessorType</key>
<integer>0</integer> <integer>0</integer>
<key>ROM</key> <key>ROM</key>
<data> <string>{{ROM}}</string>
{{ROM}}
</data>
<key>SpoofVendor</key> <key>SpoofVendor</key>
<true/> <true/>
<key>SystemMemoryStatus</key> <key>SystemMemoryStatus</key>
@ -1362,8 +1356,6 @@
<false/> <false/>
<key>SetupDelay</key> <key>SetupDelay</key>
<integer>0</integer> <integer>0</integer>
<key>VolumeAmplifier</key>
<integer>0</integer>
</dict> </dict>
<key>ConnectDrivers</key> <key>ConnectDrivers</key>
<true/> <true/>

View file

@ -245,7 +245,7 @@ generate_bootdisk () {
&& [ "${UUID}" ] \ && [ "${UUID}" ] \
&& [ "${MAC_ADDRESS}" ]; then && [ "${MAC_ADDRESS}" ]; then
ROM="${MAC_ADDRESS//\:/}" ROM="${MAC_ADDRESS//\:/}"
ROM="${ROM,,}" ROM="$(awk '{print tolower($0)}' <<< "${ROM}")"
sed -e s/\{\{DEVICE_MODEL\}\}/"${DEVICE_MODEL}"/g \ sed -e s/\{\{DEVICE_MODEL\}\}/"${DEVICE_MODEL}"/g \
-e s/\{\{SERIAL\}\}/"${SERIAL}"/g \ -e s/\{\{SERIAL\}\}/"${SERIAL}"/g \
-e s/\{\{BOARD_SERIAL\}\}/"${BOARD_SERIAL}"/g \ -e s/\{\{BOARD_SERIAL\}\}/"${BOARD_SERIAL}"/g \