Just change the line “if [ -e /usr/sbin/laptop_mode ] ; then” in 90-hdparm.sh to “if [ -e /var/run/laptop-mode-tools/enabled ] ; then” because that script is checking if /usr/sbin/laptop_mode exists rather than if laptop mode tools is enabled. Once laptop-mode-tools is installed, the file /usr/sbin/laptop_mode is always there whether it is enabled or not.
Just change the line “if [ -e /usr/sbin/ laptop_ mode ] ; then” in 90-hdparm.sh to “if [ -e /var/run/ laptop- mode-tools/ enabled ] ; then” because that script is checking if /usr/sbin/ laptop_ mode exists rather than if laptop mode tools is enabled. Once laptop-mode-tools is installed, the file /usr/sbin/ laptop_ mode is always there whether it is enabled or not.