ScotRail could return to a full timetable within a fortnight after drivers voted to accept a 5% pay increase.
Trains across Scotland have been on a reduced timetable for almost two months during a pay dispute with the Aslef union.
ScotRail said if drivers begin doing overtime again a full timetable could return within 10 days.
Aslef Scottish organiser Kevin Lindsay said: "Following a ballot on the improved offer negotiated with ScotRail, Aslef members have voted to accept the proposals on pay and conditions."
David Simpson, ScotRail service delivery director, told the BBC: "All parties involved have worked hard to find an agreement that recognises the hard work of staff and the financial challenges faced by the railway as we look to recover from the pandemic.
"ScotRail, our staff, and our customers want to have a reliable, efficient, and sustainable railway that supports the economy and connects communities across the country. This deal is a significant step towards delivering that."
ScotRail drivers will see their pay climb by 5% and also get more money for rest day and Sunday working, driving instructor and maternity pay along with a policy of no compulsory redundancies for the next five years.
The nationalised train operator said 2.2% of the increase would be funded by Transport Scotland with the remaining 2.8% coming from ScotRail's funds.
However, more disruption could be on the way, potentially hitting LNER services.
Aslef balloted workers at Arriva Rail London, Northern Trains, TransPennine Express, Chiltern Railways, Southeastern, West Midlands Trains, LNER and Great Western, with all companies' workforces backing strikes overwhelmingly.
The strikes are expected to take place within weeks and will cut normal services by as much as 90%.