-lock ${conn.dev}
\ No newline at end of file
+linkname ${conn.name}
+% if conn.type == 'PPP':
+lock ${conn.device}
+% elif conn.type == 'OE':
+lock plugin rp-pppoe.so ${conn.device}
+% elif conn.type == 'TUNNEL':
+lock noauth nobsdcomp nodeflate
+% endif
\ No newline at end of file