Network services deleted via terminal reenabled after Restart I have written a shell script to remove all services excluding ethernet. The aim is to remove these services and PPPoE entries so the end user only sees ethernet under Preferences &gt; Networking.
However, after a restart the services return. This also happens with just running the terminal command  networksetup deletepppoeservice [servicename]
I presume there is a plist somewhere that repopulates these entries, however I have deleted networkInterfaces.plist to no effect.
Here is the code snippet in question:
SERVICE=&quot;Ethernet&quot;
for NETSERV in ${networkService[@]}; do
    if [[ &quot;$NETSERV&quot; != &quot;$SERVICE&quot; ]]; then
        networksetup deletepppoeservice &quot;$NETSERV&quot;;
    fi
doneSERVICE=&quot;Ethernet&quot;
for NETSERV in ${networkService[@]}; do
    if [[ &quot;$NETSERV&quot; != &quot;$SERVICE&quot; ]]; then
        networksetup deletepppoeservice &quot;$NETSERV&quot;;
    fi
done

The goal:

Thanks.
So the solution that I stumbled on was to lock the file using chflags uchg /Library/Preferences/SystemConfiguration/preferences.plist so whatever was modifying it back was denied. Oddly, it was a root owned file so whatever was modding it was root.
I ran sudo fs_usage | grep /Library/Preferences/SystemConfiguration/preferences.plist and saw no write or modify commands so it had to happen on boot or login.