mirror of
				https://github.com/NVIDIA/nvidia-container-toolkit
				synced 2025-06-26 18:18:24 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			29 lines
		
	
	
		
			555 B
		
	
	
	
		
			Bash
		
	
	
	
	
	
			
		
		
	
	
			29 lines
		
	
	
		
			555 B
		
	
	
	
		
			Bash
		
	
	
	
	
	
| #!/bin/sh
 | |
| 
 | |
| set -e
 | |
| 
 | |
| NVIDIA_CONTAINER_RUNTIME_HOOK=/usr/bin/nvidia-container-runtime-hook
 | |
| NVIDIA_CONTAINER_TOOLKIT=/usr/bin/nvidia-container-toolkit
 | |
| 
 | |
| case "$1" in
 | |
|     configure)
 | |
|         if [ -f "${NVIDIA_CONTAINER_RUNTIME_HOOK}" ]; then
 | |
| 		if [ ! -e "${NVIDIA_CONTAINER_TOOLKIT}" ]; then
 | |
| 			ln -s ${NVIDIA_CONTAINER_RUNTIME_HOOK} ${NVIDIA_CONTAINER_TOOLKIT}
 | |
| 		fi
 | |
|         fi
 | |
|     ;;
 | |
| 
 | |
|     abort-upgrade|abort-remove|abort-deconfigure)
 | |
|     ;;
 | |
| 
 | |
|     *)
 | |
|         echo "postinst called with unknown argument \`$1'" >&2
 | |
|         exit 1
 | |
|     ;;
 | |
| esac
 | |
| 
 | |
| #DEBHELPER#
 | |
| 
 | |
| exit 0
 |