oops
This commit is contained in:
		| @@ -1,4 +1,4 @@ | |||||||
| #!/usr/bin/env bash | #!/usr/bin/env watchman | ||||||
| # This is a script to set up the links in /dev in absence of e?(u|s?m)dev. | # This is a script to set up the links in /dev in absence of e?(u|s?m)dev. | ||||||
| # Run this _after_ miscfs. | # Run this _after_ miscfs. | ||||||
|  |  | ||||||
|   | |||||||
| @@ -1,4 +1,4 @@ | |||||||
| #!/usr/bin/env bash | #!/usr/bin/env watchman | ||||||
| # This is a script to set up the right permissions in /dev in absence of e?(u|s?m)dev. | # This is a script to set up the right permissions in /dev in absence of e?(u|s?m)dev. | ||||||
| # Run this _after_ miscfs. | # Run this _after_ miscfs. | ||||||
|  |  | ||||||
| @@ -11,10 +11,6 @@ cfg_devices=( | |||||||
| 			  '/dev/fuse;root:root;777' | 			  '/dev/fuse;root:root;777' | ||||||
| 			) | 			) | ||||||
|  |  | ||||||
| cfg_links=( |  | ||||||
| 			'/proc/self/fd;/dev/fd' |  | ||||||
| 		  ) |  | ||||||
|  |  | ||||||
| start() { | start() { | ||||||
| 	for d in "${cfg_devices[@]}"; do | 	for d in "${cfg_devices[@]}"; do | ||||||
| 		IFS=';' read device owner perms <<< "$d" | 		IFS=';' read device owner perms <<< "$d" | ||||||
| @@ -24,14 +20,4 @@ start() { | |||||||
| 			chmod -R "$perms" "$device" | 			chmod -R "$perms" "$device" | ||||||
| 		} | 		} | ||||||
| 	done | 	done | ||||||
|  |  | ||||||
| 	for l in "${cfg_links[@]}"; do |  | ||||||
| 		IFS=';' read dest link <<< "$l" |  | ||||||
|  |  | ||||||
| 		[[ -e "$link" ]] || { |  | ||||||
| 			[[ -e "$dest" ]] && { |  | ||||||
| 				ln -s "$dest" "$link" |  | ||||||
| 			} |  | ||||||
| 		} |  | ||||||
| 	done |  | ||||||
| } | } | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user