View Single Post
Old 06-18-2012, 09:09 AM   #43
knc1
Helpdesk Junkie
knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.
 
knc1's Avatar
 
Posts: 6,670
Karma: 5850002
Join Date: Feb 2012
Device: Too many.
Quote:
Originally Posted by NiLuJe View Post
K4 updates tend to do something funny with the shadow passwords, either resetting it from the one in diags or vice versa, can't ever remember which partition is what...

Code:
eval unset _dpinit && if mount | grep -q mmcblk0p2 ; then umount /dev/mmcblk0p2 ; fi && mkdir -p .b1 && mount -t ext3 /dev/mmcblk0p2 .b1 && cp /etc/shadow .b1/etc/shadow && sync && umount .b1 && rmdir .b1
Two points:
  • Obviously written in or by a WinCE shop.
  • It updates "main" with the current copy of "diags" passwords.
knc1 is offline   Reply With Quote