network-manager-prepare-conf-dir 337 B

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