Skip to content

Commit 032e64a

Browse files
committed
Fix Status update in description bug!
1 parent d1bd138 commit 032e64a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

module/service.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,8 @@ fi
1414

1515
# On startup, reset description to default
1616
if [ -f "$MODPATH/module.prop" ]; then
17-
sed -i 's|^description=.*|description=TCP Optimisations & update tcp_cong_algo based on interface|' "$MODPATH/module.prop"
17+
default_desc="TCP Optimisations & update tcp_cong_algo based on interface"
18+
sed -i '/^description=/d' "$MODPATH/module.prop" && echo "description=$default_desc" >> "$MODPATH/module.prop"
1819
fi
1920

2021
log_print() {

0 commit comments

Comments
 (0)