|  | 
 |  | 
 | 
												
													
														| 243 |  $SUDO sed -i "/nameserver $NAMESERVER1/a\nameserver $NAMESERVER2" $MICROSD_MOUNT_POINT/$ROOTFS/etc/resolv.conf
 | 243 |  $SUDO sed -i "/nameserver $NAMESERVER1/a\nameserver $NAMESERVER2" $MICROSD_MOUNT_POINT/$ROOTFS/etc/resolv.conf
 | 
												
													
														| 244 |  
 | 244 |  
 | 
												
													
														| 245 |  # copy the commands to the card
 | 245 |  # copy the commands to the card
 | 
												
													
														| 246 | -$SUDO cp -f /usr/local/bin/freedombone* $MICROSD_MOUNT_POINT/$ROOTFS/usr/local/bin/
 |  | 
 | 
												
													
														|  | 
 | 246 | +$SUDO cp -f $(which freedombone)* $MICROSD_MOUNT_POINT/$ROOTFS/usr/local/bin/
 | 
												
													
														| 247 |  if [ ! -f $MICROSD_MOUNT_POINT/$ROOTFS/usr/local/bin/freedombone ]; then
 | 247 |  if [ ! -f $MICROSD_MOUNT_POINT/$ROOTFS/usr/local/bin/freedombone ]; then
 | 
												
													
														| 248 |      echo 'There was a problem with writing freedombone commands to the SD card'
 | 248 |      echo 'There was a problem with writing freedombone commands to the SD card'
 | 
												
													
														| 249 |      exit 8736
 | 249 |      exit 8736
 |