I tried it via /etc/pmconfig, but experienced some issues, cf. http://talk.maemo.org/showthread.php?t=48207 . But anyways, egoshin's advice suggests that the order of the commands matters and that cannot be achieved via /etc/pmconfig I am afraid. I was thinking about a startup script that would call a smartreflex-enabler script in MyDocs. If there was an issue, then you would just connect the N900 in USB mass storage mode and the smartreflex-enabler script would not be available..
start on started hildon-desktop script echo "1" >/sys/power/sr_vdd2_autocomp echo "1" >/sys/power/sr_vdd1_autocomp end script