Power-up or power-down of the driveline