Skip to content

Commit

Permalink
Corrected call to logger in zcip default.script
Browse files Browse the repository at this point in the history
  • Loading branch information
patrik-olsson committed Apr 27, 2023
1 parent cb56ec0 commit d15deda
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions board/common/rootfs/usr/share/zcip/default.script
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ cache="/var/cache/zcip-$interface.cache"
# zcip should start on boot/resume and various media changes
case "$1" in
init)
logger -it "$tag" -p daemon.debug "$interface: initializing ..."
logger -t "$tag" -p daemon.debug "$interface: initializing ..."
/sbin/ifconfig "$interface" up
exit 0
;;
Expand All @@ -27,19 +27,19 @@ config)
# remember $ip for $interface, to use on restart
echo "$ip" > "$cache"

logger -it "$tag" -p daemon.info "$interface: setting address $ip"
logger -t "$tag" -p daemon.info "$interface: setting address $ip"
exec ip address add dev "$interface" \
scope link local "$ip/16" broadcast +
;;

deconfig)
[ "x$ip" = "x" ] && exit 1
logger -it "$tag" -p daemon.info "$interface: removing address $ip"
logger -t "$tag" -p daemon.info "$interface: removing address $ip"
exec ip address del dev "$interface" local "$ip"
;;

*)
logger -it "$tag" -p daemon.warn "$interface: uknown action $1"
logger -t "$tag" -p daemon.warn "$interface: uknown action $1"
;;
esac

Expand Down

0 comments on commit d15deda

Please sign in to comment.