Skip to content

Commit

Permalink
semi-automated PD on raspbian scripts: remove redundant comments
Browse files Browse the repository at this point in the history
  • Loading branch information
yangsong-cnyn committed Sep 27, 2024
1 parent 94e7b6e commit 6d74f5b
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 24 deletions.
12 changes: 0 additions & 12 deletions script/_dhcpv6_pd_ref
Original file line number Diff line number Diff line change
Expand Up @@ -38,18 +38,6 @@ interface eth0
EOF
}

# customise_dhcpcd_hooks90
# {
# #dhcpcd.enter-hook
# sudo tee /etc/dhcpcd.enter-hook > /dev/null <<EOF

# EOF

# #dhcpcd.exit-hook
# sudo tee /etc/dhcpcd.exit-hook > /dev/null <<EOF
# EOF
# }

dhcpv6_pd_ref_stop()
{
if [[ -f "/etc/dhcpcd.conf.orig" ]]; then
Expand Down
12 changes: 0 additions & 12 deletions script/reference-device/dhcpcd.enter-hook
Original file line number Diff line number Diff line change
Expand Up @@ -38,22 +38,10 @@ if [ "${interface}" = "eth0" ]; then
done

case $reason in
# | DELEGATED6 | BOUND6 | RENEW6 | REBIND6 | ROUTERADVERT
DELEGATED6 | REBIND6 | RENEW6 | BOUND6 )
logger "$LOG_TAG prefix is $new_dhcp6_ia_pd1_prefix1 length is $new_dhcp6_ia_pd1_prefix1_length pltime is $new_dhcp6_ia_pd1_prefix1_pltime vltime is $new_dhcp6_ia_pd1_prefix1_vltime"
config_ra $new_dhcp6_ia_pd1_prefix1 $new_dhcp6_ia_pd1_prefix1_length $new_dhcp6_ia_pd1_prefix1_pltime $new_dhcp6_ia_pd1_prefix1_vltime
# "$new_dhcp6_ia_pd1_prefix1" "$new_dhcp6_ia_pd1_prefix1_pltime" "$new_dhcp6_ia_pd1_prefix1_vltime"
sudo systemctl restart radvd || logger "$LOG_TAG Failed to restart radvd"
;;
# RENEW6)
# if ["${new_dhcp6_ia_pd1_prefix1}" == "${old_dhcp6_ia_pd1_prefix1}"]; then
# {
# config_ra $new_dhcp6_ia_pd1_prefix1 $new_dhcp6_ia_pd1_prefix1_length $new_dhcp6_ia_pd1_prefix1_pltime $new_dhcp6_ia_pd1_prefix1_vltime
# sudo systemctl restart radvd || logger "$LOG_TAG Failed to restart radvd"
# }
# else
# {

# }
esac
fi

0 comments on commit 6d74f5b

Please sign in to comment.