I'm currently trying to modify the 1.65 hddrootfs such that I can root@ssh into my LS-WVL directly after "updating" the firmware. While the modified hddrootfs.img seems fine (I also tried an unzipped hddrootfs.buffalo.updated with the respective linkstation_version.ini/txt changes), the LinkStation reboots after receiving the firmware but then seems to notice my modifications and restores the previous firmware installed.
Is there any way to turn this off, or did I do something else wrong?
Here's my patching script FYI:
chmod ugo-s .
echo "Extracting $ZIPFILE"
7z e -P$PASSWORD $ZIPFILE
echo "Extracting hddrootfs"
mv $HDFILE $HDFILE.tgz
tar xf ../$HDFILE.tgz
echo "Changing root's password to \"password\""
sed -i 's/^root:.*/root:$1$$I2o9Z7NcvQAKp7wyCTlia0:11009:0:99999:7:::/' etc/shadow
echo "Enabling root SSH access via password"
echo "Removing old entries"
sed -i '/UsePAM/d' etc/sshd_config
sed -i '/PermitRootLogin/d' etc/sshd_config
sed -i '/PasswordAuthentication/d' etc/sshd_config
echo "Appending new entries"
cat >> etc/sshd_config <<EOF
# Enabling SSH for root
echo "Repacking $HDFILE"
tar czf ../$HDFILE *
#7z a -P$PASSWORD $ZIPFILE.new $HDFILE
Also, even after manually applying these changes via acp_commander, I still can only log in via password (so actually the patch should modify /etc/shadow as well) and not via public key, which worked fine back in 1.60 - did Buffalo somehow disable that or did I miss something in my modification this time?