network-manager-prepare-conf-dir 357 B

12345678910
  1. #!/bin/sh
  2. if [ -d /etc/NetworkManager/system-connections ]; then
  3. mkdir -p /rw/config/NM-system-connections
  4. mv /etc/NetworkManager/system-connections/* /rw/config/NM-system-connections/ 2> /dev/null || true
  5. rmdir /etc/NetworkManager/system-connections
  6. ln -s /rw/config/NM-system-connections /etc/NetworkManager/system-connections
  7. fi
  8. exit 0