⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 juke.rc

📁 这是一个同样来自贝尔实验室的和UNIX有着渊源的操作系统, 其简洁的设计和实现易于我们学习和理解
💻 RC
字号:
#!/bin/rcwide=`{echo $vgasize | sed 's/(.*)x.*x.*/\1 > 240/' | hoc}debug=0tflag=''wflag=''host=''kb=4096flags=()sname=$userif (! ~ $wide 1) {	flags=($flags -t)	kb=1024}while(! ~ $#* 0) {	switch ($1) {	case -d		debug=$2		shift	case -t		tflag='-t'	case -h		host=$2		shift	case -w		wflags='-w'	case -s		sname=$2		shift	case -*		echo Usage: classical [-d level] [-t] [-h srvhost]		exit usage	}	shift}if (! test -e /mnt/playlist){	if (! ~ $debug '0') echo mounting playlistfs	if (! test -e /srv/playlist.$sname && ! ~ $host ''){		import -a $host /srv /srv	}	if (! mount -b /srv/playlist.$sname /mnt >/dev/null >[2]/dev/null){		rm -f /srv/playlist.$sname		if (! test -e /sys/lib/music/classic){			if (! ~ $debug '0') echo connecting to choline			if (! test -e /n/choline/lib/audio)				9fs choline			if (! bind -a /n/choline/lib/audio /sys/lib/music)				exit choline		}		if (! ~ $debug '0') echo starting playlistfs		games/playlistfs -s $sname -d $debug	}}if (! test -w /mnt/juke) {	if (! test -e /srv/jukefs.$sname && ! ~ $host ''){		import -a $host /srv /srv	}	if (! mount -b /srv/jukefs.$sname /mnt >/dev/null >[2]/dev/null){		if (! ~ $debug '0') echo games/jukefs		games/jukefs -s $sname	}}if (~ $wflags '-w') {	exec games/jukebox -w -d $debug $tflag &}exec games/jukebox -d $debug $tflag

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -