dhcpThemeSongs
==============

Connecting isc dhcp to sonos for theme songs on entering a flat


add dhcp hooks
===============
`
  on commit {
    set clip = binary-to-ascii(10, 8, ".", leased-address);
    set clhw = binary-to-ascii(16, 8, ":", substring(hardware, 1, 6));
    execute("/usr/local/sbin/dhcpevent", "commit", clip, clhw);
  }

  on release {

                        set clip = binary-to-ascii(10, 8, ".", leased-address);
                        set clhw = binary-to-ascii(16, 8, ":", substring(hardware, 1, 6));
                        execute("/usr/local/sbin/dhcpevent", "remove", clip, clhw);

                }

  on expiry {
  # we don't have a mac in hardware here

                        if(exists agent.remote-id) {

                                set clhw = binary-to-ascii(16, 8, ":", substring(option agent.remote-id, 2, 6));

                        } else {

                                set clhw = "";

                        }

                        set clip = binary-to-ascii(10, 8, ".", leased-address);

                        execute("/usr/local/sbin/dhcpevent", "remove", clip, clhw);

  }
  `

dhcpThemeSongs
==============

Connecting isc dhcp to sonos for theme songs on entering a flat


add dhcp hooks
===============

    on commit {
      set clip = binary-to-ascii(10, 8, ".", leased-address);
      set clhw = binary-to-ascii(16, 8, ":", substring(hardware, 1, 6));
      execute("/usr/local/sbin/dhcpevent", "commit", clip, clhw);
    }

    on release {
  
                          set clip = binary-to-ascii(10, 8, ".", leased-address);
                          set clhw = binary-to-ascii(16, 8, ":", substring(hardware, 1, 6));
                          execute("/usr/local/sbin/dhcpevent", "remove", clip, clhw);
  
                  }

    on expiry {
    # we don't have a mac in hardware here
  
                          if(exists agent.remote-id) {
  
                                  set clhw = binary-to-ascii(16, 8, ":", substring(option agent.remote-id, 2, 6));
  
                          } else {
  
                                  set clhw = "";
  
                          }
  
                          set clip = binary-to-ascii(10, 8, ".", leased-address);
  
                          execute("/usr/local/sbin/dhcpevent", "remove", clip, clhw);
  
    }

Update Readme with commit hooks
Update Readme with commit hooks