ramips: mt7621: refactor set affinity script