diff --git a/amepatch/install.sh b/amepatch/install.sh index 1d7bd63..24b96b2 100755 --- a/amepatch/install.sh +++ b/amepatch/install.sh @@ -12,7 +12,7 @@ if [ "${1}" = "late" ]; then cp -vf "${0}" "/tmpRoot/usr/arc/addons/" cp -vf /usr/bin/amepatch.sh /tmpRoot/usr/bin/amepatch.sh - cat > ${DEST} <<'EOF' + cat > ${DEST} <${DEST} - echo "Description=Enable CPU Freq scaling" >>${DEST} - echo "DefaultDependencies=no" >>${DEST} - echo "IgnoreOnIsolate=true" >>${DEST} - echo "After=multi-user.target" >>${DEST} - echo >>${DEST} - echo "[Service]" >>${DEST} - echo "User=root" >>${DEST} - echo "Restart=always" >>${DEST} - echo "RestartSec=30" >>${DEST} - echo "ExecStart=/bin/ash /usr/sbin/scaler.sh" >>${DEST} - echo >>${DEST} - echo "[X-Synology]" >>${DEST} - echo "Author=Virtualization Team" >>${DEST} + cat > ${DEST} <${DEST} - echo "Description=Enable CPU Freq scaling" >>${DEST} - echo "DefaultDependencies=no" >>${DEST} - echo "IgnoreOnIsolate=true" >>${DEST} - echo "After=multi-user.target" >>${DEST} - echo >>${DEST} - echo "[Service]" >>${DEST} - echo "User=root" >>${DEST} - echo "Type=oneshot" >>${DEST} - echo "RemainAfterExit=yes" >>${DEST} - echo "ExecStart=/bin/ash /usr/sbin/rescaler.sh ${2}" >>${DEST} - echo >>${DEST} - echo "[X-Synology]" >>${DEST} - echo "Author=Virtualization Team" >>${DEST} + cat > ${DEST} <