Skip to content

Instantly share code, notes, and snippets.

@laris
Created October 25, 2018 14:27
Show Gist options
  • Save laris/a13926546ee91cb60448ec66708451f8 to your computer and use it in GitHub Desktop.
Save laris/a13926546ee91cb60448ec66708451f8 to your computer and use it in GitHub Desktop.
Synology_DSM_XPEnology_collection.md
#!/bin/sh

# Mount/Start Entware
mkdir -p /opt
mount -o bind "/volume1/@Entware/opt" /opt
/opt/etc/init.d/rc.unslung start

# Add Entware Profile in Global Profile
if grep  -qF  '/opt/etc/profile' /etc/profile; then
  echo "Confirmed: Entware Profile in Global Profile"
else
  echo "Adding: Entware Profile in Global Profile"
  cat >> /etc/profile <<"EOF"

# Load Entware Profile
. /opt/etc/profile
EOF
fi

# Update Entware List
#/opt/bin/opkg update
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment